nxtrace / nexttracewebapi

MTR风格的NextTrace网页WRAPPER
https://nxtrace.github.io/nexttracewebapi/
GNU General Public License v3.0
92 stars 8 forks source link

nginx反代并301为https访问时, 无法Start Nexttrace #15

Closed zuilintan closed 5 months ago

kernelcrashdump commented 5 months ago

肯定是你配置的问题,这个docker容器是自带nginx的
你可以参考下配置

zuilintan commented 5 months ago

肯定是你配置的问题,这个docker容器是自带nginx的 你可以参考下配置

确实如此, 需要添加映射:

...
location /socket.io {
    proxy_pass http://localhost:35000/socket.io;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_set_header Host $http_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;
}
...