feat: 本地Docker支持源码热更新和独立追溯地址

This commit is contained in:
Nixevol
2026-09-20 02:13:48 +08:00
parent 4dab600062
commit c4864992e8
10 changed files with 176 additions and 25 deletions
+20 -9
View File
@@ -1,17 +1,28 @@
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 80;
server_name localhost;
client_max_body_size 0;
proxy_http_version 1.1;
proxy_read_timeout 3600s;
proxy_send_timeout 3600s;
proxy_request_buffering off;
proxy_set_header Host $http_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 X-Forwarded-Host $http_host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
location = / { return 302 /admin/; }
location = /admin { return 302 /admin/; }
location = /trace { return 302 /trace/; }
location /admin/ { proxy_pass http://api:5173; }
location /trace/ { proxy_pass http://api:5174; }
location / {
proxy_pass http://api:3000;
proxy_http_version 1.1;
proxy_read_timeout 3600s;
proxy_send_timeout 3600s;
proxy_request_buffering off;
proxy_set_header Host $http_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 X-Forwarded-Host $http_host;
}
}