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
routers:
portainer:
rule: 'portainer.{{ env `NASCOMPOSE_DOMAIN` }}'
rule: 'Host(`portainer.{{ env `NASCOMPOSE_DOMAIN` }}`)'
service: portainer@file
services:
portainer:

View File

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

View File

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

View File

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