NginxProxyManager / nginx-proxy-manager

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

Cannot login after initial setup #4175

Open ChrisB85 opened 1 day ago

ChrisB85 commented 1 day ago

Hi,

I'm running docker in rootless mode. After initial deployment of NPM I cannot login to web UI. In browser network tab I see that /api request status is: (failed)net::ERR_CONNECTION_RESET - response content is empty. If I open /api directly in the browser the response is: {"status":"OK","version":{"major":2,"minor":12,"revision":1}} No message in the docker compose logs. UID and GID of the user which runs the container is 1000. The same thing happens when I remove PUID and PGID envs (I removed both volumes dirs to avoid permissions issues).

My docker-compos.yml file:

services:
  app:
    image: 'docker.io/jc21/nginx-proxy-manager:latest'
    restart: unless-stopped
    ports:
      - '1080:80'
      - '1081:81'
      - '1443:443'
    volumes:
      - ./data:/data
      - ./letsencrypt:/etc/letsencrypt
    environment:
      PUID: 1000
      PGID: 1000

Edit: I just noticed that the same happens for /tokens request, but only for second login attempt: image

ChrisB85 commented 1 day ago

I turns out that it has something to do with VPN which Im using to connect to the network where NPM host is located. I can login from the PC located in the same network.