milesmcc / shynet

Modern, privacy-friendly, and detailed web analytics that works without cookies or JS.
Apache License 2.0
2.87k stars 180 forks source link

docker SSL setup #303

Open ablacklama opened 7 months ago

ablacklama commented 7 months ago

Hey, i'm trying to get this setup with docker and ssl but I can't find instructions anywhere on how to do that. I'll post what i've tried below.

Here's the command i'm currently trying:

sudo docker run -p 80:8080 -p 443:443 --env-file=.env -v ~
/cert.pem:/usr/src/shynet/cert.pem -v ~/privkey.pem:/usr/src/shynet/privkey.pem --en
trypoint ./ssl.webserver.sh milesmcc/shynet:latest

I've been poking around the files and it looks i'll probably need to run using --entrypoint=./ssl.webserver.sh since it doesn't look like there's another way to tell it to use that instead of webserver.sh. And i'm passing my cert.pem and privkey.pem into docker. i've set SCRIPT_USE_HTTPS=True in the .env.

I'm really not sure what to do at this point. It works when i run it normally without ssl, but no response from the server with the current command.