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
- PRIVATE_DOMAIN
- PUBLIC_DOMAIN
- TRAEFIK_CERTIFICATERESOLVERS_LE_ACME_EMAIL
networks:
web:
ipv4_address: 172.18.1.2

View File

@ -9,7 +9,12 @@ http:
proxmox:
loadBalancer:
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:
pfsense:
@ -26,4 +31,11 @@ http:
- auth
tls:
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
service: http-catchall
rule: hostregexp(`{host:.+}`)
entrypoint: web
entryPoints:
- web
middlewares:
- redir

View File

@ -12,7 +12,7 @@ providers:
log:
filePath: /data/traefik.log
level: DEBUG
level: INFO
entryPoints:
web:
@ -23,7 +23,8 @@ entryPoints:
certificatesResolvers:
le:
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
httpChallenge:
entrypoint: web