mirror of
https://github.com/ImranR98/selfhostingfromscratch.git
synced 2026-04-24 06:38:36 -04:00
Use Lets-Encrypt for HTTPS
This commit is contained in:
@@ -28,6 +28,9 @@ services:
|
||||
- "--entrypoints.web.http.redirections.entrypoint.permanent=true"
|
||||
- "--entryPoints.websecure=true"
|
||||
- "--entryPoints.websecure.address=:443"
|
||||
- "--certificatesresolvers.le.acme.email=contact@imranr.dev"
|
||||
- "--certificatesresolvers.le.acme.storage=./acme/acme.json"
|
||||
- "--certificatesresolvers.le.acme.tlschallenge=true"
|
||||
- "--entryPoints.websecure.proxyProtocol.trustedIPs=172.19.0.1/32"
|
||||
ports:
|
||||
- "80:80"
|
||||
@@ -41,6 +44,7 @@ services:
|
||||
- "traefik.http.routers.api.entryPoints=websecure"
|
||||
- "traefik.http.routers.api.service=api@internal"
|
||||
- "traefik.http.routers.api.tls=true"
|
||||
- "traefik.http.routers.api.tls.certresolver=le"
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- traefik
|
||||
@@ -63,6 +67,7 @@ services:
|
||||
- "traefik.http.routers.filebrowser.entrypoints=websecure"
|
||||
- "traefik.http.routers.filebrowser.tls=true"
|
||||
- "traefik.http.services.filebrowser.loadbalancer.server.port=80"
|
||||
- "traefik.http.routers.filebrowser.tls.certresolver=le"
|
||||
|
||||
volumes:
|
||||
filebrowser_db:
|
||||
|
||||
Reference in New Issue
Block a user