18 lines
551 B
Plaintext
18 lines
551 B
Plaintext
# Nginx 反向代理配置示例(可选)
|
|
# 如需绑定自己的域名或开启 HTTPS / SSL,请参考此配置:
|
|
|
|
server {
|
|
listen 80;
|
|
server_name your-domain.com; # 替换为你的实际域名
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:8000;
|
|
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 300s;
|
|
proxy_connect_timeout 60s;
|
|
}
|
|
}
|