NginxProxyManager / nginx-proxy-manager

Docker container for managing Nginx proxy hosts with a simple, powerful interface
https://nginxproxymanager.com
MIT License
22.6k stars 2.62k forks source link

Timed out when activating Let's Encrypt SSL - No SSL proxy works fine #756

Closed v9999 closed 3 years ago

v9999 commented 3 years ago

Checklist app image: jc21/nginx-proxy-manager:latest db image: yobasystems/alpine-mariadb vps: ubuntu 18.04 running o Oracle Cloud (VM.Standard.E2.1.Micro) x86_64 domain solving: duckdns docker: docker and docker-compose latest versions.

Describe the bug First of all, beautiful work on the project. Thanks a lot for the effort!

So, my problem is simple. My proxy hosts are working normally without SSL, but if I add the inbuilt let'sencrypt SSL, the reverse proxy breaks, I begin to get timed outs and can't reach my services. I tried it with wordpress, portainer and bazarr.

If I disable the SSL, I can reach the servers just fine.

To Reproduce

  1. One simple example with bazarr:
  2. Here's my docker-compose:

version: '3' services: app: image: jc21/nginx-proxy-manager:latest ports:

  • 80:80
  • 81:81
  • 443:443 environment: DB_MYSQL_HOST: "db" DB_MYSQL_PORT: 3306 DB_MYSQL_USER: "npm" DB_MYSQL_PASSWORD: "npm" DB_MYSQL_NAME: "npm" volumes:
  • ./data:/data
  • ./letsencrypt:/etc/letsencrypt db: image: yobasystems/alpine-mariadb environment: MYSQL_ROOT_PASSWORD: 'npm' MYSQL_DATABASE: 'npm' MYSQL_USER: 'npm' MYSQL_PASSWORD: 'npm' volumes:
  • ./data/mysql:/var/lib/mysql

    bazarr: image: ghcr.io/linuxserver/bazarr container_name: bazarr volumes:

  • ./bazarr/config:/config
  • ./movies:/movies
  • ./tv:/tv ports:
  • 6767:6767 restart: unless-stopped
  1. Ok, now we have npm working fine, which I can access with the server public ip.
  2. Now, I set a duckdns domain to get to the server public ip.
  3. On npm, I add a proxy host for that domain in duckdns that points to 10.0.0.3:6767 (bazarr on private ip for these oracle vps's). No SSL yet.
  4. Accessing the duckdns link, I get to my bazarr instance.
  5. Now that it works, I'll go back to npm and add SSL to this proxy host. Let's encrypt finish its setup normally.
  6. Now I try to access the duckdns link and get timed out. Multiple browsers, refresh, private tab etc. doesn't fix it.

Expected behavior The SSL for the proxy host should work.

v9999 commented 3 years ago

I'll post again under support.