更改配置部署在nas上

This commit is contained in:
2025-12-19 00:31:42 +08:00
parent 616f059f1e
commit d2aba899cc
2 changed files with 17 additions and 9 deletions
+8
View File
@@ -44,6 +44,14 @@ const portConfigs: Record<string, Partial<ApiConfig>> = {
// 主要 // 主要
// 梅州 // 梅州
'51703': { '51703': {
// baseUrl: 'http://nas.7bm.co:8073',
// documentUrl: 'http://nas.7bm.co:8073/docauditai/',
// uploadUrl: 'http://nas.7bm.co:8073/api/v2/documents',
// collaboraUrl: 'http://nas.7bm.co:9980',
// appUrl: 'http://nas.7bm.co:51703',
// baseUrl: 'http://172.16.0.56:8073', // baseUrl: 'http://172.16.0.56:8073',
// documentUrl: 'http://172.16.0.56:8073/docauditai/', // documentUrl: 'http://172.16.0.56:8073/docauditai/',
// uploadUrl: 'http://172.16.0.56:8073/api/v2/documents', // uploadUrl: 'http://172.16.0.56:8073/api/v2/documents',
+9 -9
View File
@@ -13,7 +13,7 @@ module.exports = {
// './node_modules/.bin/remix-serve', // './node_modules/.bin/remix-serve',
// './node_modules/@remix-run/serve/dist/cli.js', // './node_modules/@remix-run/serve/dist/cli.js',
// './build/server/index.js', // './build/server/index.js',
// '--port', '5183' // '--port', '51703'
], ],
instances: 1, instances: 1,
autorestart: true, autorestart: true,
@@ -21,26 +21,26 @@ module.exports = {
max_memory_restart: '1G', max_memory_restart: '1G',
env: { env: {
NODE_ENV: 'testing', NODE_ENV: 'testing',
PORT: 5183, PORT: 51703,
CLIENT_ID: 'meizhou', CLIENT_ID: 'meizhou',
API_PORT_CONFIG: '5183', API_PORT_CONFIG: '51703',
// 添加这些环境变量确保客户端能获取到 // 添加这些环境变量确保客户端能获取到
NEXT_PUBLIC_NODE_ENV: 'testing', NEXT_PUBLIC_NODE_ENV: 'testing',
NEXT_PUBLIC_PORT: '5183', NEXT_PUBLIC_PORT: '51703',
NEXT_PUBLIC_CLIENT_ID: 'meizhou', NEXT_PUBLIC_CLIENT_ID: 'meizhou',
NEXT_PUBLIC_API_PORT_CONFIG: '5183', NEXT_PUBLIC_API_PORT_CONFIG: '51703',
OAUTH_CLIENT_SECRET: 'VYk1AC5XIJEfnEXwyq0u9JEY3fi3byCfSD58zANGeb' OAUTH_CLIENT_SECRET: 'VYk1AC5XIJEfnEXwyq0u9JEY3fi3byCfSD58zANGeb'
}, },
env_testing: { env_testing: {
NODE_ENV: 'testing', NODE_ENV: 'testing',
PORT: 5183, PORT: 51703,
CLIENT_ID: 'meizhou', CLIENT_ID: 'meizhou',
API_PORT_CONFIG: '5183', API_PORT_CONFIG: '51703',
// 添加这些环境变量确保客户端能获取到 // 添加这些环境变量确保客户端能获取到
NEXT_PUBLIC_NODE_ENV: 'testing', NEXT_PUBLIC_NODE_ENV: 'testing',
NEXT_PUBLIC_PORT: '5183', NEXT_PUBLIC_PORT: '51703',
NEXT_PUBLIC_CLIENT_ID: 'meizhou', NEXT_PUBLIC_CLIENT_ID: 'meizhou',
NEXT_PUBLIC_API_PORT_CONFIG: '5183', NEXT_PUBLIC_API_PORT_CONFIG: '51703',
OAUTH_CLIENT_SECRET: 'VYk1AC5XIJEfnEXwyq0u9JEY3fi3byCfSD58zANGeb' OAUTH_CLIENT_SECRET: 'VYk1AC5XIJEfnEXwyq0u9JEY3fi3byCfSD58zANGeb'
}, },
error_file: './logs/meizhou-err.log', error_file: './logs/meizhou-err.log',