SelfhostedPro / selfhosted_templates

Portainer templates for selfhosted services
GNU General Public License v3.0
1.24k stars 238 forks source link

[BUG] Nginx proxy manager returning 504 error for apps #152

Closed AndyYangUK closed 4 years ago

AndyYangUK commented 4 years ago

Describe the bug NGINX Proxy Manager is returning 504 time out error when setting up new proxy hosts.

To Reproduce Steps to reproduce the behavior:

  1. Install new server with Ubuntu 18.04
  2. Install Docker, Portainer, nginx proxy manager, and a few apps from the Selfhosted pro templates.
  3. Setup new proxy host for http://ip:port going to app.mydomain.com, with SSL certificate.
  4. Access app.mydomain.com, see 504 gateway timeout error.

Expected behavior https://app.mydomain.com would show the app that I have installed at http://ipaddress:port

I am able to access my app at the relevant port after installing them through Portainer, but going through the proxy gives me a 504 error.

Is there some special config I need to do to allow the proxy to work?