auto-smart-security 1.0.16 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +3 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -141,6 +141,7 @@ const redis = new Redis({
141
141
  host: process.env.REDIS_HOST,
142
142
  port: Number(process.env.REDIS_PORT ?? 6379),
143
143
  password: process.env.REDIS_PASSWORD || undefined,
144
+ db: Number(process.env.REDIS_DB ?? 3),
144
145
  });
145
146
 
146
147
  applySecurity(app, {
@@ -192,8 +193,8 @@ applySecurity(app, {
192
193
 
193
194
  trust: {
194
195
  ips: ['113.xxx.xxx.xxx'],
195
- origins: ['https://flamingo-fe.skydemo.vn'],
196
- paths: ['admin'],
196
+ origins: ['https://xxxxxxx'],
197
+ paths: ['api'],
197
198
  },
198
199
 
199
200
  rateLimit: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auto-smart-security",
3
- "version": "1.0.16",
3
+ "version": "1.1.0",
4
4
  "description": "Production-ready security middleware for Express / NestJS",
5
5
  "author": "Hai Vinh <haivinhinspirit@gmail.com>",
6
6
  "main": "dist/index.js",