Added https
This commit is contained in:
parent
8e1c9fbaeb
commit
89eefb9b98
4
.env
4
.env
|
|
@ -1,2 +1,2 @@
|
|||
DIR=/home/simon/docker/data
|
||||
DOMAIN=localhost
|
||||
DIR=/srv/docker
|
||||
DOMAIN=milvert.com
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
10
traefik.yml
10
traefik.yml
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue