添加管理员登陆,添加nginx反向代理配置,

This commit is contained in:
2025-07-27 20:01:36 +08:00
parent 9a366d042a
commit 33363aba78
17 changed files with 2010 additions and 836 deletions
+79 -77
View File
@@ -11,7 +11,8 @@ module.exports = {
'-r', 'dotenv/config',
// './node_modules/.bin/remix-serve',
'./node_modules/@remix-run/serve/dist/cli.js',
'./build/server/index.js'
'./build/server/index.js',
'--port', '51703'
],
instances: 1,
autorestart: true,
@@ -20,12 +21,13 @@ module.exports = {
env: {
NODE_ENV: 'production',
PORT: 51703,
CLIENT_ID: 'main'
},
env_testing: {
NODE_ENV: 'testing',
PORT: 51703,
CLIENT_ID: 'main'
CLIENT_ID: 'main',
API_PORT_CONFIG: '51703',
// 添加这些环境变量确保客户端能获取到
NEXT_PUBLIC_NODE_ENV: 'production',
NEXT_PUBLIC_PORT: '51703',
NEXT_PUBLIC_CLIENT_ID: 'main',
NEXT_PUBLIC_API_PORT_CONFIG: '51703'
},
error_file: './logs/main-err.log',
out_file: './logs/main-out.log',
@@ -33,15 +35,16 @@ module.exports = {
time: true
},
// 客户端C - 反向代理服务 (端口: 51704)
// 客户端潮州 - 反向代理服务 (端口: 51704)
{
name: 'docreview-client-c',
name: 'docreview-client-chaozhou',
script: 'node',
args: [
'-r', 'dotenv/config',
// './node_modules/.bin/remix-serve',
'./node_modules/@remix-run/serve/dist/cli.js',
'./build/server/index.js'
'./build/server/index.js',
'--port', '51704'
],
instances: 1,
autorestart: true,
@@ -50,29 +53,29 @@ module.exports = {
env: {
NODE_ENV: 'production',
PORT: 51704,
CLIENT_ID: 'client-c',
API_PORT_CONFIG: '51704'
CLIENT_ID: 'chaozhou',
API_PORT_CONFIG: '51704',
// 添加这些环境变量确保客户端能获取到
NEXT_PUBLIC_NODE_ENV: 'production',
NEXT_PUBLIC_PORT: '51704',
NEXT_PUBLIC_CLIENT_ID: 'chaozhou',
NEXT_PUBLIC_API_PORT_CONFIG: '51704'
},
env_testing: {
NODE_ENV: 'testing',
PORT: 51704,
CLIENT_ID: 'client-c',
API_PORT_CONFIG: '51704'
},
error_file: './logs/client-c-err.log',
out_file: './logs/client-c-out.log',
log_file: './logs/client-c-combined.log',
error_file: './logs/chaozhou-err.log',
out_file: './logs/chaozhou-out.log',
log_file: './logs/chaozhou-combined.log',
time: true
},
// 客户端D - 独立服务 (端口: 51705)
// 客户端揭阳 - 独立服务 (端口: 51705)
{
name: 'docreview-client-d',
name: 'docreview-client-jieyang',
script: 'node',
args: [
'-r', 'dotenv/config',
// './node_modules/.bin/remix-serve',
'./node_modules/@remix-run/serve/dist/cli.js',
'./build/server/index.js'
'./build/server/index.js',
'--port', '51705'
],
instances: 1,
autorestart: true,
@@ -81,29 +84,29 @@ module.exports = {
env: {
NODE_ENV: 'production',
PORT: 51705,
CLIENT_ID: 'client-d',
API_PORT_CONFIG: '51705'
CLIENT_ID: 'jieyang',
API_PORT_CONFIG: '51705',
// 添加这些环境变量确保客户端能获取到
NEXT_PUBLIC_NODE_ENV: 'production',
NEXT_PUBLIC_PORT: '51705',
NEXT_PUBLIC_CLIENT_ID: 'jieyang',
NEXT_PUBLIC_API_PORT_CONFIG: '51705'
},
env_testing: {
NODE_ENV: 'testing',
PORT: 51705,
CLIENT_ID: 'client-d',
API_PORT_CONFIG: '51705'
},
error_file: './logs/client-d-err.log',
out_file: './logs/client-d-out.log',
log_file: './logs/client-d-combined.log',
error_file: './logs/jieyang-err.log',
out_file: './logs/jieyang-out.log',
log_file: './logs/jieyang-combined.log',
time: true
},
// 客户端E - 独立服务 (端口: 51706)
// 客户端云浮 - 独立服务 (端口: 51706)
{
name: 'docreview-client-e',
name: 'docreview-client-yunfu',
script: 'node',
args: [
'-r', 'dotenv/config',
// './node_modules/.bin/remix-serve',
'./node_modules/@remix-run/serve/dist/cli.js',
'./build/server/index.js'
'./build/server/index.js',
'--port', '51706'
],
instances: 1,
autorestart: true,
@@ -112,29 +115,29 @@ module.exports = {
env: {
NODE_ENV: 'production',
PORT: 51706,
CLIENT_ID: 'client-e',
API_PORT_CONFIG: '51706'
CLIENT_ID: 'yunfu',
API_PORT_CONFIG: '51706',
// 添加这些环境变量确保客户端能获取到
NEXT_PUBLIC_NODE_ENV: 'production',
NEXT_PUBLIC_PORT: '51706',
NEXT_PUBLIC_CLIENT_ID: 'yunfu',
NEXT_PUBLIC_API_PORT_CONFIG: '51706'
},
env_testing: {
NODE_ENV: 'testing',
PORT: 51706,
CLIENT_ID: 'client-e',
API_PORT_CONFIG: '51706'
},
error_file: './logs/client-e-err.log',
out_file: './logs/client-e-out.log',
log_file: './logs/client-e-combined.log',
error_file: './logs/yunfu-err.log',
out_file: './logs/yunfu-out.log',
log_file: './logs/yunfu-combined.log',
time: true
},
// 客户端F - 独立服务 (端口: 51707)
// 客户端梅州 - 独立服务 (端口: 51707)
{
name: 'docreview-client-f',
name: 'docreview-client-meizhou',
script: 'node',
args: [
'-r', 'dotenv/config',
//'./node_modules/.bin/remix-serve',
'./node_modules/@remix-run/serve/dist/cli.js',
'./build/server/index.js'
'./build/server/index.js',
'--port', '51707'
],
instances: 1,
autorestart: true,
@@ -143,29 +146,29 @@ module.exports = {
env: {
NODE_ENV: 'production',
PORT: 51707,
CLIENT_ID: 'client-f',
API_PORT_CONFIG: '51707'
CLIENT_ID: 'meizhou',
API_PORT_CONFIG: '51707',
// 添加这些环境变量确保客户端能获取到
NEXT_PUBLIC_NODE_ENV: 'production',
NEXT_PUBLIC_PORT: '51707',
NEXT_PUBLIC_CLIENT_ID: 'meizhou',
NEXT_PUBLIC_API_PORT_CONFIG: '51707'
},
env_testing: {
NODE_ENV: 'testing',
PORT: 51707,
CLIENT_ID: 'client-f',
API_PORT_CONFIG: '51707'
},
error_file: './logs/client-f-err.log',
out_file: './logs/client-f-out.log',
log_file: './logs/client-f-combined.log',
error_file: './logs/meizhou-err.log',
out_file: './logs/meizhou-out.log',
log_file: './logs/meizhou-combined.log',
time: true
},
// 客户端G - 独立服务 (端口: 51708)
// 客户端省局 - 独立服务 (端口: 51708)
{
name: 'docreview-client-g',
name: 'docreview-client-province',
script: 'node',
args: [
'-r', 'dotenv/config',
//'./node_modules/.bin/remix-serve',
'./node_modules/@remix-run/serve/dist/cli.js',
'./build/server/index.js'
'./build/server/index.js',
'--port', '51708'
],
instances: 1,
autorestart: true,
@@ -174,18 +177,17 @@ module.exports = {
env: {
NODE_ENV: 'production',
PORT: 51708,
CLIENT_ID: 'client-g',
API_PORT_CONFIG: '51708'
CLIENT_ID: 'province',
API_PORT_CONFIG: '51708',
// 添加这些环境变量确保客户端能获取到
NEXT_PUBLIC_NODE_ENV: 'production',
NEXT_PUBLIC_PORT: '51708',
NEXT_PUBLIC_CLIENT_ID: 'province',
NEXT_PUBLIC_API_PORT_CONFIG: '51708'
},
env_testing: {
NODE_ENV: 'testing',
PORT: 51708,
CLIENT_ID: 'client-g',
API_PORT_CONFIG: '51708'
},
error_file: './logs/client-g-err.log',
out_file: './logs/client-g-out.log',
log_file: './logs/client-g-combined.log',
error_file: './logs/province-err.log',
out_file: './logs/province-out.log',
log_file: './logs/province-combined.log',
time: true
}
],