Initial release with production deploy config.

Add GitAtlas deploy assets, DATA_FILE support for isolated server data, and port documentation for sourcing.simosen.cn.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-15 00:52:31 +08:00
commit e9939ef9dc
45 changed files with 14376 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
module.exports = {
apps: [
{
name: "product-sourcing",
cwd: "/www/wwwroot/sourcing.simosen.cn/app",
script: "src/server.js",
interpreter: "node",
env: {
NODE_ENV: "production",
PORT: "9477",
DATA_FILE: "/www/data/product-sourcing/items.json",
},
max_memory_restart: "512M",
autorestart: true,
watch: false,
},
],
};
+17
View File
@@ -0,0 +1,17 @@
location ^~ /.well-known/ {
root /www/wwwroot/sourcing.simosen.cn;
allow all;
}
location / {
proxy_pass http://127.0.0.1:9477;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 300s;
client_max_body_size 32m;
}