Added https

This commit is contained in:
Simon 2019-10-28 21:08:32 +01:00
parent 8e1c9fbaeb
commit 89eefb9b98
3 changed files with 15 additions and 2 deletions

4
.env
View File

@ -1,2 +1,2 @@
DIR=/home/simon/docker/data
DOMAIN=localhost
DIR=/srv/docker
DOMAIN=milvert.com

View File

@ -112,6 +112,7 @@ services:
#devices:
#- /dev/ttyAMA0
restart: unless-stopped
user: ${UID}
volumes:
- ${DIR}/nodered:/data
labels:
@ -160,6 +161,8 @@ services:
- /var/run/docker.sock:/var/run/docker.sock
- ./traefik.yml:/etc/traefik/traefik.yml
- ./static_config.yml:/etc/traefik/static_config.yml
- "./acme.json:/acme.json"
labels:
- "traefik.http.routers.traefik.rule=Host(`tr.${DOMAIN}`)"
- "traefik.http.routers.traefik.entrypoints=web"

View File

@ -16,10 +16,20 @@ providers:
watch: true
certificatesResolvers:
sample:
acme:
email: simon@milvert.com
storage: acme.json
httpChallenge:
# used during the challenge
entryPoint: web
entryPoints:
web:
address: ":80"
web-sercure:
address: ":443"
mqtt:
address: ":9001"