给所有请求都加上jwt,隐藏生成jwt的secret(放到.env中),隐藏app-secret(放在pm2运行配置文件中,后续直接读取环境配置即可)
This commit is contained in:
+28
-12
@@ -28,7 +28,7 @@ module.exports = {
|
||||
NEXT_PUBLIC_PORT: '51703',
|
||||
NEXT_PUBLIC_CLIENT_ID: 'main',
|
||||
NEXT_PUBLIC_API_PORT_CONFIG: '51703',
|
||||
// REMIX_DEV_ORIGIN: 'http://localhost:51703'
|
||||
OAUTH_CLIENT_SECRET: 'VYk1AC5XIJEfnEXwyq0u9JEY3fi3byCfSD58zANGeb'
|
||||
},
|
||||
env_testing: {
|
||||
NODE_ENV: 'testing',
|
||||
@@ -39,7 +39,8 @@ module.exports = {
|
||||
NEXT_PUBLIC_NODE_ENV: 'testing',
|
||||
NEXT_PUBLIC_PORT: '51703',
|
||||
NEXT_PUBLIC_CLIENT_ID: 'main',
|
||||
NEXT_PUBLIC_API_PORT_CONFIG: '51703'
|
||||
NEXT_PUBLIC_API_PORT_CONFIG: '51703',
|
||||
OAUTH_CLIENT_SECRET: 'VYk1AC5XIJEfnEXwyq0u9JEY3fi3byCfSD58zANGeb'
|
||||
},
|
||||
error_file: './logs/main-err.log',
|
||||
out_file: './logs/main-out.log',
|
||||
@@ -72,7 +73,8 @@ module.exports = {
|
||||
NEXT_PUBLIC_PORT: '51704',
|
||||
NEXT_PUBLIC_CLIENT_ID: 'chaozhou',
|
||||
NEXT_PUBLIC_API_PORT_CONFIG: '51704',
|
||||
// REMIX_DEV_ORIGIN: 'http://localhost:51704'
|
||||
// 🔒 OAuth 敏感配置
|
||||
OAUTH_CLIENT_SECRET: 'VYk1AC5XIJEfnEXwyq0u9JEY3fi3byCfSD58zANGeb'
|
||||
},
|
||||
env_testing: {
|
||||
NODE_ENV: 'testing',
|
||||
@@ -83,7 +85,9 @@ module.exports = {
|
||||
NEXT_PUBLIC_NODE_ENV: 'testing',
|
||||
NEXT_PUBLIC_PORT: '51704',
|
||||
NEXT_PUBLIC_CLIENT_ID: 'chaozhou',
|
||||
NEXT_PUBLIC_API_PORT_CONFIG: '51704'
|
||||
NEXT_PUBLIC_API_PORT_CONFIG: '51704',
|
||||
// 🔒 OAuth 敏感配置
|
||||
OAUTH_CLIENT_SECRET: 'VYk1AC5XIJEfnEXwyq0u9JEY3fi3byCfSD58zANGeb'
|
||||
},
|
||||
error_file: './logs/chaozhou-err.log',
|
||||
out_file: './logs/chaozhou-out.log',
|
||||
@@ -115,7 +119,8 @@ module.exports = {
|
||||
NEXT_PUBLIC_PORT: '51705',
|
||||
NEXT_PUBLIC_CLIENT_ID: 'jieyang',
|
||||
NEXT_PUBLIC_API_PORT_CONFIG: '51705',
|
||||
// REMIX_DEV_ORIGIN: 'http://localhost:51705'
|
||||
// 🔒 OAuth 敏感配置
|
||||
OAUTH_CLIENT_SECRET: 'VYk1AC5XIJEfnEXwyq0u9JEY3fi3byCfSD58zANGeb'
|
||||
},
|
||||
env_testing: {
|
||||
NODE_ENV: 'testing',
|
||||
@@ -126,7 +131,9 @@ module.exports = {
|
||||
NEXT_PUBLIC_NODE_ENV: 'testing',
|
||||
NEXT_PUBLIC_PORT: '51705',
|
||||
NEXT_PUBLIC_CLIENT_ID: 'jieyang',
|
||||
NEXT_PUBLIC_API_PORT_CONFIG: '51705'
|
||||
NEXT_PUBLIC_API_PORT_CONFIG: '51705',
|
||||
// 🔒 OAuth 敏感配置
|
||||
OAUTH_CLIENT_SECRET: 'VYk1AC5XIJEfnEXwyq0u9JEY3fi3byCfSD58zANGeb'
|
||||
},
|
||||
error_file: './logs/jieyang-err.log',
|
||||
out_file: './logs/jieyang-out.log',
|
||||
@@ -158,7 +165,8 @@ module.exports = {
|
||||
NEXT_PUBLIC_PORT: '51706',
|
||||
NEXT_PUBLIC_CLIENT_ID: 'yunfu',
|
||||
NEXT_PUBLIC_API_PORT_CONFIG: '51706',
|
||||
// REMIX_DEV_ORIGIN: 'http://localhost:51706'
|
||||
// 🔒 OAuth 敏感配置
|
||||
OAUTH_CLIENT_SECRET: 'VYk1AC5XIJEfnEXwyq0u9JEY3fi3byCfSD58zANGeb'
|
||||
},
|
||||
env_testing: {
|
||||
NODE_ENV: 'testing',
|
||||
@@ -169,7 +177,9 @@ module.exports = {
|
||||
NEXT_PUBLIC_NODE_ENV: 'testing',
|
||||
NEXT_PUBLIC_PORT: '51706',
|
||||
NEXT_PUBLIC_CLIENT_ID: 'yunfu',
|
||||
NEXT_PUBLIC_API_PORT_CONFIG: '51706'
|
||||
NEXT_PUBLIC_API_PORT_CONFIG: '51706',
|
||||
// 🔒 OAuth 敏感配置
|
||||
OAUTH_CLIENT_SECRET: 'VYk1AC5XIJEfnEXwyq0u9JEY3fi3byCfSD58zANGeb'
|
||||
},
|
||||
error_file: './logs/yunfu-err.log',
|
||||
out_file: './logs/yunfu-out.log',
|
||||
@@ -201,7 +211,8 @@ module.exports = {
|
||||
NEXT_PUBLIC_PORT: '51707',
|
||||
NEXT_PUBLIC_CLIENT_ID: 'meizhou',
|
||||
NEXT_PUBLIC_API_PORT_CONFIG: '51707',
|
||||
// REMIX_DEV_ORIGIN: 'http://localhost:51707'
|
||||
// 🔒 OAuth 敏感配置
|
||||
OAUTH_CLIENT_SECRET: 'VYk1AC5XIJEfnEXwyq0u9JEY3fi3byCfSD58zANGeb'
|
||||
},
|
||||
env_testing: {
|
||||
NODE_ENV: 'testing',
|
||||
@@ -212,7 +223,9 @@ module.exports = {
|
||||
NEXT_PUBLIC_NODE_ENV: 'testing',
|
||||
NEXT_PUBLIC_PORT: '51707',
|
||||
NEXT_PUBLIC_CLIENT_ID: 'meizhou',
|
||||
NEXT_PUBLIC_API_PORT_CONFIG: '51707'
|
||||
NEXT_PUBLIC_API_PORT_CONFIG: '51707',
|
||||
// 🔒 OAuth 敏感配置
|
||||
OAUTH_CLIENT_SECRET: 'VYk1AC5XIJEfnEXwyq0u9JEY3fi3byCfSD58zANGeb'
|
||||
},
|
||||
error_file: './logs/meizhou-err.log',
|
||||
out_file: './logs/meizhou-out.log',
|
||||
@@ -244,7 +257,8 @@ module.exports = {
|
||||
NEXT_PUBLIC_PORT: '51708',
|
||||
NEXT_PUBLIC_CLIENT_ID: 'province',
|
||||
NEXT_PUBLIC_API_PORT_CONFIG: '51708',
|
||||
// REMIX_DEV_ORIGIN: 'http://localhost:51708'
|
||||
// 🔒 OAuth 敏感配置
|
||||
OAUTH_CLIENT_SECRET: 'VYk1AC5XIJEfnEXwyq0u9JEY3fi3byCfSD58zANGeb'
|
||||
},
|
||||
env_testing: {
|
||||
NODE_ENV: 'testing',
|
||||
@@ -255,7 +269,9 @@ module.exports = {
|
||||
NEXT_PUBLIC_NODE_ENV: 'testing',
|
||||
NEXT_PUBLIC_PORT: '51708',
|
||||
NEXT_PUBLIC_CLIENT_ID: 'province',
|
||||
NEXT_PUBLIC_API_PORT_CONFIG: '51708'
|
||||
NEXT_PUBLIC_API_PORT_CONFIG: '51708',
|
||||
// 🔒 OAuth 敏感配置
|
||||
OAUTH_CLIENT_SECRET: 'VYk1AC5XIJEfnEXwyq0u9JEY3fi3byCfSD58zANGeb'
|
||||
},
|
||||
error_file: './logs/province-err.log',
|
||||
out_file: './logs/province-out.log',
|
||||
|
||||
Reference in New Issue
Block a user