Files
soul-yongping/soul-api/deploy/runner/nginx.conf.template
Alex-larget 6df1736e1e 1
2026-03-20 14:47:37 +08:00

32 lines
882 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# soul-api Runner - Nginx 反向代理
# 监听 9001代理到当前活跃实例blue=18081, green=18082
# 宝塔固定 proxy_pass 到 127.0.0.1:9001无需改配置
worker_processes 1;
error_log /dev/stderr warn;
pid /tmp/nginx.pid;
events { worker_connections 64; }
http {
access_log /dev/stdout;
include /etc/nginx/mime.types;
default_type application/octet-stream;
server {
listen 9001;
server_name _;
location / {
proxy_pass http://127.0.0.1:__BACKEND_PORT__;
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_read_timeout 60s;
}
}
}