Update traefik configuration. Add octoprint link.

This commit is contained in:
Thomas Lovén 2021-08-21 23:10:46 +02:00
parent fb3b89079c
commit f0709ed83b
4 changed files with 19 additions and 4 deletions

View File

@ -25,6 +25,7 @@ services:
- EMAIL - EMAIL
- PRIVATE_DOMAIN - PRIVATE_DOMAIN
- PUBLIC_DOMAIN - PUBLIC_DOMAIN
- TRAEFIK_CERTIFICATERESOLVERS_LE_ACME_EMAIL
networks: networks:
web: web:
ipv4_address: 172.18.1.2 ipv4_address: 172.18.1.2

View File

@ -9,7 +9,12 @@ http:
proxmox: proxmox:
loadBalancer: loadBalancer:
servers: servers:
- url: http://192.168.0.10:8006 - url: https://192.168.0.10:8006
prusa:
loadBalancer:
servers:
- url: http://192.168.0.14
routers: routers:
pfsense: pfsense:
@ -26,4 +31,11 @@ http:
- auth - auth
tls: tls:
certResolver: le certResolver: le
prusa:
service: prusa
rule: Host(`prusa.{{env "PRIVATE_DOMAIN"}}`)
middlewares:
- auth
tls:
certResolver: le

View File

@ -13,7 +13,8 @@ http:
# Catch all requests to the http entrypoint and redirect them to https # Catch all requests to the http entrypoint and redirect them to https
service: http-catchall service: http-catchall
rule: hostregexp(`{host:.+}`) rule: hostregexp(`{host:.+}`)
entrypoint: web entryPoints:
- web
middlewares: middlewares:
- redir - redir

View File

@ -12,7 +12,7 @@ providers:
log: log:
filePath: /data/traefik.log filePath: /data/traefik.log
level: DEBUG level: INFO
entryPoints: entryPoints:
web: web:
@ -23,7 +23,8 @@ entryPoints:
certificatesResolvers: certificatesResolvers:
le: le:
acme: acme:
email: '{{ env "EMAIL" }}' # caServer: https://acme-staging-v02.api.letsencrypt.org/directory
# email: SET BY ENV VARIABLE TRAEFIK_CERTIFICATERESOLVERS_LE_ACME_EMAIL
storage: /data/acme.json storage: /data/acme.json
httpChallenge: httpChallenge:
entrypoint: web entrypoint: web