31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
server {
|
|
listen 80 default_server;
|
|
server_name _;
|
|
root C:/yutongda/releases/admin-rel26-local-source-20260911d/frontend/dist;
|
|
index index.html;
|
|
location = / { add_header Cache-Control "no-store" always; try_files /index.html =404; }
|
|
location = /index.html { add_header Cache-Control "no-store" always; }
|
|
location = /_app.config.js { add_header Cache-Control "no-store" always; }
|
|
location ^~ /node06-final-template-previews/ { try_files $uri =404; }
|
|
location ^~ /node06-final-templates/ { try_files $uri =404; }
|
|
location / { try_files $uri $uri/ /index.html; }
|
|
location /jeecg-boot/ {
|
|
proxy_pass http://127.0.0.1:8080/jeecg-boot/;
|
|
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_read_timeout 120s;
|
|
}
|
|
location /jeecgboot/ {
|
|
proxy_pass http://127.0.0.1:8080/jeecg-boot/;
|
|
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_read_timeout 120s;
|
|
}
|
|
}
|
|
|
|
|