Skip to content

How to use with Caddy reverse proxy instead of Nginx #323

@dapzer

Description

@dapzer

Current Behavior

I want to use Caddy instead of Nginx, because it's easier to configure and provides ssl serts by letsencrypt out of box, how i can do it? Now hen i enable SECURE_CONNECTION and WEB_AUTHENTICATION i get 500 Internal Server Error.

Expected Behavior

No response

Steps To Reproduce

No response

Environment

  • OS:
  • OS version:
  • CPU:
  • Docker version:
  • Device model:
  • Browser/OS:

Container creation

  firefox:
    image: jlesage/firefox:latest
    container_name: firefox
    volumes:
      - firefox_data:/config:rw
    restart: unless-stopped
    environment:
      - KEEP_APP_RUNNING=1
      - DARK_MODE=1
      - SECURE_CONNECTION=TLS
      - WEB_AUTHENTICATION_USERNAME=${WEB_AUTHENTICATION_USERNAME:-spaceman}
      - WEB_AUTHENTICATION_PASSWORD=${WEB_AUTHENTICATION_PASSWORD:-spaceman}
      - WEB_AUTHENTICATION=1
#    ports:
#      - 5800:5800
    expose:
      - 5800
    networks:
      - app
      - caddy-public

Container log

firefox  | [certsmonitor] mkdir: can't create directory '/var/run/certsmonitor': Permission denied
firefox  | [certsmonitor] stat: can't stat '/config/certs/web-privkey.pem': No such file or directory
firefox  | [certsmonitor] stat: can't stat '/config/certs/web-fullchain.pem': No such file or directory
firefox  | [certsmonitor] stat: can't stat '/config/certs/vnc-privkey.pem': No such file or directory
firefox  | [certsmonitor] stat: can't stat '/config/certs/vnc-fullchain.pem': No such file or directory
firefox  | [certsmonitor] stat: can't stat '/config/certs/dhparam.pem': No such file or directory
firefox  | [certsmonitor] /etc/services.d/certsmonitor/run: line 67: can't create /var/run/certsmonitor/web_certs_hash: nonexistent directory
firefox  | [certsmonitor] /etc/services.d/certsmonitor/run: line 68: can't create /var/run/certsmonitor/vnc_certs_hash: nonexistent directory
firefox  | [certsmonitor] /etc/services.d/certsmonitor/run: line 69: can't create /var/run/certsmonitor/dh_params_hash: nonexistent directory
firefox  | [supervisor  ] service 'certsmonitor' exited (with status 1).

Container inspect


Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions