#1281  nginx 反向代理报超时504
Closed
mudi69 opened 1 year ago

使用容器构建OneDev,在局域网内可以正常访问。通过nginx反向代理访问,有504超时的问题。 如何能确认OneDev是否接收到了请求,我在系统日志上没找到相关的信息,谢谢。

nginx是使用https访问的。 以下是反向代理的配置。

#PROXY-START/

 location /wicket/websocket {
              proxy_pass http://192.168.1.4:6610/wicket/websocket;
              proxy_http_version 1.1;
              proxy_set_header Upgrade $http_upgrade;
              proxy_set_header Connection "upgrade";                
      }

      location /~server {
              proxy_pass http://192.168.1.4:6610/~server;
              proxy_http_version 1.1;
              proxy_set_header Upgrade $http_upgrade;
              proxy_set_header Connection "upgrade";
      }
      
      location / {
              proxy_pass http://192.168.1.4:6610/;
      }
#PROXY-END/
Robin Shen commented 1 year ago

请从安装nginx的机器运行 telnet 192.168.1.4 6610看是否能够成功。如果不行的话,多半是你的网络配置的问题了。

mudi69 commented 1 year ago

应该是 qnap nas 的网络服务问题,确实连接不上,系统重启后就能连上了。。。 谢谢支持,已经可以用了。

Robin Shen changed state to 'Closed' 1 year ago
Previous Value Current Value
Open
Closed
issue 1 of 1
Type
Question
Priority
Normal
Assignee
Issue Votes (0)
Watchers (4)
Reference
onedev/server#1281
Please wait...
Page is in error, reload to recover