wiredoor: NGINX 502 Bad gateway

Environment

VPS, Intel x86, Docker

Describe the bug

I installed Wiredoor with Docker on a clean VPS. I opened ports 80, 443, and 51820. I started Docker, but it always returns a 502 (bad gateway) error. I verified that the ports are open. I tried using both the server’s IP and the domain name as VPS_HOST in the env file. From the logs, nginx detects the connection attempt but i get Bad Gateway.

ufw status
Status: active

To                         Action      From
--                         ------      ----
22                         ALLOW       Anywhere
80                         ALLOW       Anywhere
443                        ALLOW       Anywhere
21                         ALLOW       Anywhere
51820/udp                  ALLOW       Anywhere
22 (v6)                    ALLOW       Anywhere (v6)
80 (v6)                    ALLOW       Anywhere (v6)
443 (v6)                   ALLOW       Anywhere (v6)
21 (v6)                    ALLOW       Anywhere (v6)
51820/udp (v6)             ALLOW       Anywhere (v6)

Steps to reproduce

  1. Open Ports
  2. Install wiredoor
  3. Docker compose up
  4. connect to domain wiredoor.domain.com

Logs or error output

myip - - [23/Apr/2025:18:50:50 +0200] "GET / HTTP/1.1" 502 150 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:137.0) Gecko/20100101 Firefox/137.0"
myip - - [23/Apr/2025:18:50:58 +0200] "GET / HTTP/1.1" 502 150 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:137.0) Gecko/20100101 Firefox/137.0"
myip - - [23/Apr/2025:18:51:08 +0200] "GET / HTTP/1.1" 502 552 "https://wiredoor.domain.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 Edg/135.0.0.0"
myip - - [23/Apr/2025:18:51:08 +0200] "GET /favicon.ico HTTP/1.1" 502 552 "https://wiredoor.domain.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 Edg/135.0.0.0"
myip - - [23/Apr/2025:18:51:11 +0200] "GET / HTTP/1.1" 502 552 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 Edg/135.0.0.0"
myip - - [23/Apr/2025:18:51:11 +0200] "GET /favicon.ico HTTP/1.1" 502 552 "https://wiredoor.domain.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 Edg/135.0.0.0"
myip - - [23/Apr/2025:18:51:12 +0200] "GET / HTTP/1.1" 502 552 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 Edg/135.0.0.0"
myip - - [23/Apr/2025:18:51:12 +0200] "GET /favicon.ico HTTP/1.1" 502 552 "https://wiredoor.domain.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 Edg/135.0.0.0"
myip - - [23/Apr/2025:18:51:12 +0200] "GET / HTTP/1.1" 502 552 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 Edg/135.0.0.0"
myip - - [23/Apr/2025:18:51:13 +0200] "GET /favicon.ico HTTP/1.1" 502 552 "https://wiredoor.domain.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 Edg/135.0.0.0"
myip - - [23/Apr/2025:18:51:13 +0200] "GET / HTTP/1.1" 502 552 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 Edg/135.0.0.0"
myip - - [23/Apr/2025:18:51:14 +0200] "GET /favicon.ico HTTP/1.1" 502 552 "https://wiredoor.domain.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 Edg/135.0.0.0"
185.218.86.4 - - [23/Apr/2025:18:51:47 +0200] "GET / HTTP/1.1" 301 162 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36 Edg/90.0.818.46"


2025/04/23 18:01:40 [notice] 53#53: signal process started
2025/04/23 18:08:09 [notice] 53#53: signal process started
2025/04/23 18:18:57 [notice] 53#53: signal process started
2025/04/23 18:24:52 [notice] 53#53: signal process started
2025/04/23 18:37:06 [notice] 53#53: signal process started

Wiredoor version

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 18 (8 by maintainers)

Most upvoted comments

solved! Need to modify the configuration in /etc/nginx/locations/default/__main.conf, proxy_pass http://127.0.0.1:3000; localhost can not be used here.

solved! Need to modify the configuration in /etc/nginx/locations/default/__main.conf,解决了!需要修改/etc/nginx/locations/default/__main.conf 中的配置, proxy_pass http://127.0.0.1:3000;代理密码 http://127.0.0.1:3000 ; localhost can not be used here.这里不能使用 localhost。

it works !