chat
This commit is contained in:
24
ecosystem.config.cjs
Normal file
24
ecosystem.config.cjs
Normal file
@@ -0,0 +1,24 @@
|
||||
/** PM2 — production frontend (nginx upstream — usually port 3004 on server) */
|
||||
module.exports = {
|
||||
apps: [
|
||||
{
|
||||
name: "modstagram-next",
|
||||
cwd: __dirname,
|
||||
script: "node_modules/next/dist/bin/next",
|
||||
args: "start --port 3004 --hostname 0.0.0.0",
|
||||
instances: 1,
|
||||
exec_mode: "fork",
|
||||
autorestart: true,
|
||||
max_memory_restart: "800M",
|
||||
env: {
|
||||
NODE_ENV: "production",
|
||||
PORT: "3004",
|
||||
HOSTNAME: "0.0.0.0",
|
||||
UPSTREAM_API_URL: "https://api.modstagram.ir",
|
||||
NEXT_PUBLIC_SOCKET_URL: "https://api.modstagram.ir",
|
||||
NEXT_PUBLIC_IMAGE_BASE_URL: "https://api.modstagram.ir/storage",
|
||||
NEXT_PUBLIC_BASE_URL: "/api/v1",
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user