#support

nginx proxy_pass Docker Issue Resolved

TLDR Romario experienced a 502 bad gateway with nginx proxy_pass and docker-compose, but resolved the issue when realizing docker-compose was down.

Powered by Struct AI
Apr 11, 2023 (8 months ago)
Romario
Photo of md5-6c7925cd4df7e39b036d2b26fb21013d
Romario
11:57 PM
Hello, I’m configuring nginx but using proxy_pass to the docker-compose front-end returns 502 bad gateway. How can I debug it?
    # Root domain points to port 3301 
    location / { 
        proxy_pass ; 
        # proxy_set_header Host $host; 
        # proxy_set_header X-Real-IP $remote_addr; 
    }

I’m doing http -> redirects to https
Apr 12, 2023 (8 months ago)
Romario
Photo of md5-6c7925cd4df7e39b036d2b26fb21013d
Romario
12:05 AM
I also tried upstream config but it didn’t work
12:27
Romario
12:27 AM
oh lol, it worked
12:27
Romario
12:27 AM
The docker-compose was down haha