Files
dafuweng-saiadmin6.x/server/nginx-backend-dice-api.conf.example
2026-04-28 10:24:01 +08:00

21 lines
877 B
Plaintext
Raw Permalink 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.
# 后端 dice-api.h55555game.top 正确配置说明
# 问题:当前 Nginx 用 root 当静态站,而 /core、/dice 等接口由 Webman(6688) 处理,必须反代到 6688
# 在 server { ... } 内、在现有 location 之前,添加下面这一块(或替换掉仅用 root 的方式):
# 将请求转发到 Webman端口 6688
location / {
proxy_pass http://127.0.0.1:6688;
proxy_http_version 1.1;
proxy_set_header Connection "";
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;
}
# 若 public 目录下有需要直接由 Nginx 提供的静态文件,可再单独加 location例如
# location /assets/ {
# alias /www/wwwroot/dafuweng-api/server/public/;
# }