Fix traefik's config

This commit is contained in:
Colin Hebert
2023-04-30 12:46:06 +10:00
parent 50c7bb9f86
commit 1f0ec6acc1
4 changed files with 4 additions and 4 deletions

View File

@@ -2,7 +2,7 @@ http:
#TODO: Convert to inline configuration for portainer #TODO: Convert to inline configuration for portainer
routers: routers:
portainer: portainer:
rule: 'portainer.{{ env `NASCOMPOSE_DOMAIN` }}' rule: 'Host(`portainer.{{ env `NASCOMPOSE_DOMAIN` }}`)'
service: portainer@file service: portainer@file
services: services:
portainer: portainer:

View File

@@ -1,7 +1,7 @@
http: http:
routers: routers:
qbittorrent-api: qbittorrent-api:
rule: 'qbittorrent-api.{{ env `NASCOMPOSE_DOMAIN` }}' rule: 'Host(`qbittorrent-api.{{ env `NASCOMPOSE_DOMAIN` }}`)'
service: qbittorrent@docker service: qbittorrent@docker
middlewares: middlewares:
- authelia-basic@file - authelia-basic@file

View File

@@ -1,7 +1,7 @@
http: http:
routers: routers:
synology: synology:
rule: 'synology.{{ env `NASCOMPOSE_DOMAIN` }}' rule: 'Host(`synology.{{ env `NASCOMPOSE_DOMAIN` }}`)'
service: synology@file service: synology@file
services: services:
synology: synology:

View File

@@ -3,7 +3,7 @@ providers:
endpoint: tcp://docker:2375 endpoint: tcp://docker:2375
exposedByDefault: false exposedByDefault: false
network: reverse-proxy network: reverse-proxy
defaultRule: '{{ .Labels "com.docker.compose.service" }}{{ env `NASCOMPOSE_DOMAIN` }}' defaultRule: 'Host(`{{ index .Labels "com.docker.compose.service" }}.{{ env `NASCOMPOSE_DOMAIN` }}`)'
file: file:
directory: /etc/traefik/dynamic/ directory: /etc/traefik/dynamic/