HTTPS Setup #1830
Replies: 3 comments
-
I ran into the same issue, but haven't found a real solution yet - i do have a workaround though.
For the anthias-nginx container, replace the current port configuration:
With this:
This procedure is also documented here: https://docs.docker.com/network/
This configuration survives updating the containers with upgrade_containers.sh, but probably won't survive updating via the run_upgrade.sh script. Maybe the supplied install script could ask if you want to use you own web server as a proxy? |
Beta Was this translation helpful? Give feedback.
-
the nginx service is working as a reverse proxy to the I was not able to get the nginx config to work but switching to Caddy I was able to get https work just fine.I'm not sure if it is 100% functional yet but it's a good start. I'm using self-signed certs so I bind them into the container as well Here is my services:
...
anthias-caddy:
image: caddy:latest
ports:
- 443:443
environment:
- HOME=/data
depends_on:
- anthias-server
- anthias-websocket
restart: always
volumes:
- resin-data:/data:ro
- /home/pacerboard/.screenly:/data/.screenly:ro
- /home/pacerboard/screenly_assets:/data/screenly_assets:ro
- /home/pacerboard/screenly/staticfiles:/data/screenly/staticfiles:ro
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- ./docker/caddy:/etc/caddy
- ./docker/caddy/Zima140.pem:/etc/caddy/Zima140.pem:ro # this is my certificate, marked with :ro to make it read only
- ./docker/caddy/cert-key.pem:/etc/caddy/cert-key.pem:ro # this is my private key certificate marked with :ro For the
to
Then here is the Caddyfile I am using (Note that I am only handling https, so if you visit with http you are not redirected to https, I will be adding this to my Caddyfile at some point)
The websocket stuff is not working but it's also not working in the base installation so I'm not worrying about it |
Beta Was this translation helpful? Give feedback.
-
Just for clarity -- I'm not against using self-signed SSL certificates. It is just want to prioritize LE/Tailscale higher in the user workflow. @nicomiguelino we could perhaps borrow a card out of the Proxmox playbook. That would cover both use cases. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm running the latest release on a Raspberry Pi 4. I've got the standard HTTP site up and running, but need to look at enabling HTTPS. I've seen comments that imply running the enable_ssl.sh script will enable this, however when running the scrip it does nothing.
The script appears to be accessing running enable-ssl in the site.yml file located in /screenly/ansible, howerver the yml file does not do anything.
Has anyone been able to get https working recently and if so how did you accomplish this?
Many thanks,
Daniel
Beta Was this translation helpful? Give feedback.
All reactions