[Question] Installing Lemmy instance from docker -> 502 bad gateway - eviltoast

Hi, does anybody have an idea what the reason could be? I installed a lemmy instance on a VPS using the docker images. Beforehand I installed nginx and got a letsencrypt - certificate (which seems to have worked). I downloaded the nginx.conf file from github and made the configurations, also in the lemmy.config and docker-compose.yml files. However, I’m unsure if there’s anything else I should look at. Any tips are welcome :)

  • footty@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    That is a conf for the host system nginx, in which you enter the lemmy port defined on the left side of your proxy service’s port section.

    ...
    ports:
          # actual and only port facing any connection from outside
          # Note, change the left number if port 1236 is already in use on your system
          # You could use port 80 if you won't use a reverse proxy
          - "{{ lemmy_port }}:8536"