docs: 完善 README 与全栈 Docker 生产编排,交付收尾

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Nixevol
2026-06-28 17:14:20 +08:00
co-authored by Cursor
parent 841905c47e
commit a20220ccbc
5 changed files with 224 additions and 23 deletions
+45
View File
@@ -0,0 +1,45 @@
# 管理后台(默认 80 端口)
server {
listen 80;
server_name _;
root /usr/share/nginx/html/admin;
index index.html;
location /api/ {
proxy_pass http://api:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 120m;
}
location /uploads/ {
proxy_pass http://api:3000;
}
location /t/ {
proxy_pass http://api:3000;
}
location / {
try_files $uri $uri/ /index.html;
}
}
# C 端移动溯源页(8080 端口)
server {
listen 8080;
server_name _;
root /usr/share/nginx/html/h5;
index index.html;
location /api/ {
proxy_pass http://api:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /uploads/ {
proxy_pass http://api:3000;
}
location / {
try_files $uri $uri/ /index.html;
}
}