Cant Login (Email)

My version of HedgeDoc is: The latest docker image + PostgresSQL

What I expected to happen:

I added a user via the command line interface (./manage_users --pass Test123 --add info@iXXX)

The Login site is available (its running behind my NGINX Proxy Manager).

Thats my Docker Compose:

  database:
      image: postgres:latest
      environment:
        - POSTGRES_USER=hedgedoc
        - POSTGRES_PASSWORD=XXX
        - POSTGRES_DB=hedgedoc
      volumes:
        - ./pad/sql:/var/lib/postgresql/data
      restart: always
      ports:
        - "8001:5432"
      container_name: postgresql
  app:
      # Make sure to use the latest release from https://hedgedoc.org/latest-release
      image: quay.io/hedgedoc/hedgedoc:1.9.9
      environment:
        - CMD_DB_URL=postgres://hedgedoc:XXX@TrustMeTheIpIsCorrect:8001/hedgedoc
        - CMD_DOMAIN=pad.XXX.de
        - CMD_URL_ADDPORT=false
        - CMD_EMAIL=true
        - CMD_ALLOW_ANONYMOUS=false
        - CMD_ALLOW_EMAIL_REGISTER=false
        - CMD_HSTS_ENABLE=true
      volumes:
        - ./pad/pad:/hedgedoc/public/uploads
      ports:
        - "3434:3000"
      restart: always
      depends_on:
        - database
      container_name: hedgedoc

What actually happened:

The user got created, at least there wasn’t any error.
But I couldn’t log in inside the webinterface.

I already tried:

using an older Version of Hedgedoc and another Database

Hi @Its4Nik and welcome to the HedgeDoc community!

Based on the fact that you enable HSTS, I assume your reverse proxy does the TLS. In that case you should set CMD_PROTOCOL_USESSL=true as another environment variable.

Also be sure to set the correct headers with the reverse proxy as shown here:

I hope this helps a bit.
Erik

Hey so I got it working, I understood the documentation wrong. If anybody else has a propblem with this, inside your nginx proxy manager conf you don’t have to add any custom Locations just add the blank proxy host and if you are using SSL add the CMD_PROTOCOL_USESSL=true; i tought its used inside hedgedoc and creating a new SSL cert with certbot.

So quick disclaimer if you are running nginx proxy manager just add - CMD_PROTOCOL_USESSL=true inside your docker compose.

Thanks for your help.
Erik