-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lets Encrypt SSL #52
Comments
Hello! Unfortunately, there is no Let´s Encrypt SSL install guide for SesDashboard. But you could use third party guides for common nginx with docker installation. I found this one: https://pentacent.medium.com/nginx-and-lets-encrypt-with-docker-in-less-than-5-minutes-b4b8a60d3a71 I didn't try it myself, but it looks fine to me. In the future I'm planning to improve installation and add ssl support, but there is no estimation time for that. Thanks. |
Here's an example on how I edited the services:
mysql:
restart: always
env_file:
- ./.env.local
image: mysql:8
container_name: sesdashboard-mysql
working_dir: /application
volumes:
- .:/application
- sesdashboard-mysql-datavolume:/var/lib/mysql
# ports:
# - "8085:3306"
logging:
driver: "json-file"
options:
max-size: "50m"
webserver:
restart: always
image: nginx:alpine
container_name: sesdashboard-webserver
working_dir: /application
volumes:
- .:/application
- ./phpdocker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- "80"
labels:
- "traefik.enable=true"
- "traefik.http.routers.admin.rule=Host(`sesdashboard.xxxxx.com`)"
- "traefik.http.routers.admin.entrypoints=websecure"
- "traefik.http.routers.admin.tls.certresolver=myresolver"
logging:
driver: "json-file"
options:
max-size: "50m"
php-fpm:
restart: always
build: phpdocker/php-fpm
container_name: sesdashboard-php-fpm
working_dir: /application
volumes:
- .:/application
- ./phpdocker/php-fpm/php-ini-overrides.ini:/etc/php/7.4/fpm/conf.d/99-overrides.ini
logging:
driver: "json-file"
options:
max-size: "50m"
traefik:
image: traefik:2.9
restart: unless-stopped
ports:
- "443:443"
command:
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.websecure.address=:443"
- "--certificatesresolvers.myresolver.acme.tlschallenge=true"
- "[email protected]"
- "--certificatesresolvers.myresolver.acme.storage=/ssl/acme.json"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./traefik/ssl:/ssl
logging:
driver: "json-file"
options:
max-size: "50m"
volumes:
sesdashboard-mysql-datavolume:
driver: local |
It would be easier with Caddy (vs Let´s Encrypt). Here's an example: https://github.com/samyogdhital/listmonk-caddy-reverse-proxy - you just add some lines to the The easiest might be to just copy jgimenez's traefik config. |
@jgimenez Based on that config, you have no external/global version of nginx running right? I'm installing this on an nginx vhost so I get
Along with a basic proxy pass to port 82 in the vhost nginx config:
Does that seem correct? It's resulting in a "file not found" error #68 (comment). If I change "82:80" to just "80" or "82", like you have it, I get a 502 error instead. I've tried disabling my firewall to no avail. Changing |
Looking at this caddy setup for comparison https://github.com/samyogdhital/listmonk-caddy-reverse-proxy/blob/main/docker-compose.yml, they map it to app:9000 https://github.com/samyogdhital/listmonk-caddy-reverse-proxy/blob/main/caddy/Caddyfile. Would the equivalent of that be webserver:82?
I'm doubtful that matters though. They remove the main 9000 port from the docker-compose file, but sesdashboard doesn't have a config.toml, and that's where the 9000 port is https://github.com/samyogdhital/listmonk-caddy-reverse-proxy/blob/main/config.toml. Does it have something equivalent that has a port? |
Hello,
is there a Guide to install SSL Let´s Encrypt Certicate?
I install Sesdashboard over AWS.
Thank you
Dany
The text was updated successfully, but these errors were encountered: