|
发表于 2023-9-25 15:45:25
|
显示全部楼层
下面是我的配置, 现在没有用了, 挪回自己家的nas了, 用了cf的zero trust, 规则更简单了
- location / {
- proxy_pass http://127.0.0.1:8087;
- proxy_http_version 1.1;
- proxy_cache_bypass $http_upgrade;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- 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_set_header X-Forwarded-Host $host;
- proxy_set_header X-Forwarded-Port $server_port;
- }
- location /notifications/hub {
- proxy_pass http://127.0.0.1:3012;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- }
- location /notifications/hub/negotiate {
- proxy_pass http://127.0.0.1:8087;
- }
- location /admin {
- 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_pass http://127.0.0.1:8087;
- }
复制代码 |
|