2026-01-17 18:36:52 +08:00
|
|
|
server {
|
2026-01-22 14:06:44 +08:00
|
|
|
listen 19199;
|
2026-01-17 18:36:52 +08:00
|
|
|
server_name localhost;
|
|
|
|
|
|
|
|
|
|
root C:/nginx/sites/bls_project_console;
|
|
|
|
|
index index.html;
|
|
|
|
|
|
|
|
|
|
location /api/ {
|
2026-01-22 14:06:44 +08:00
|
|
|
proxy_pass http://127.0.0.1:19070;
|
2026-01-17 18:36:52 +08:00
|
|
|
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_connect_timeout 5s;
|
|
|
|
|
proxy_send_timeout 30s;
|
|
|
|
|
proxy_read_timeout 30s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location / {
|
|
|
|
|
try_files $uri $uri/ /index.html;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
access_log C:/nginx/logs/bls_project_console_access.log;
|
|
|
|
|
error_log C:/nginx/logs/bls_project_console_error.log warn;
|
|
|
|
|
}
|