修改域名为h55555game.top
This commit is contained in:
20
server/nginx-backend-dice-api.conf.example
Normal file
20
server/nginx-backend-dice-api.conf.example
Normal file
@@ -0,0 +1,20 @@
|
||||
# 后端 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/;
|
||||
# }
|
||||
Reference in New Issue
Block a user