Move to self-serve domain

This commit is contained in:
Colin Hebert
2023-04-30 12:14:14 +10:00
parent 87bfb200be
commit 50c7bb9f86
9 changed files with 12 additions and 20 deletions

View File

@@ -2,7 +2,7 @@ http:
middlewares:
authelia:
forwardAuth:
address: 'http://authelia:9091/api/verify?rd=https%3A%2F%2Fauthelia.{{ env `NASCOMPOSE_TRAEFIK_DOMAINS` | splitList `,` | first }}%2F'
address: 'http://authelia:9091/api/verify?rd=https%3A%2F%2Fauthelia.{{ env `NASCOMPOSE_DOMAIN` }}%2F'
trustForwardHeader: true
authResponseHeaders:
- Remote-User

View File

@@ -2,7 +2,7 @@ http:
#TODO: Convert to inline configuration for portainer
routers:
portainer:
rule: '{{ $s := "portainer" }}{{ range $i, $d := splitList "," (env `NASCOMPOSE_TRAEFIK_DOMAINS`) }}{{ if $i }} || {{end}}Host(`{{ $s }}.{{ $d }}`){{ end }}'
rule: 'portainer.{{ env `NASCOMPOSE_DOMAIN` }}'
service: portainer@file
services:
portainer:

View File

@@ -1,7 +1,7 @@
http:
routers:
qbittorrent-api:
rule: '{{ $s := "qbittorrent-api" }}{{ range $i, $d := splitList "," (env `NASCOMPOSE_TRAEFIK_DOMAINS`) }}{{ if $i }} || {{end}}Host(`{{ $s }}.{{ $d }}`){{ end }}'
rule: 'qbittorrent-api.{{ env `NASCOMPOSE_DOMAIN` }}'
service: qbittorrent@docker
middlewares:
- authelia-basic@file

View File

@@ -1,7 +1,7 @@
http:
routers:
synology:
rule: '{{ $s := "synology" }}{{ range $i, $d := splitList "," (env `NASCOMPOSE_TRAEFIK_DOMAINS`) }}{{ if $i }} || {{end}}Host(`{{ $s }}.{{ $d }}`){{ end }}'
rule: '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: '{{ $s := index .Labels "com.docker.compose.service" }}{{ range $i, $d := splitList "," (env `NASCOMPOSE_TRAEFIK_DOMAINS`) }}{{ if $i }} || {{end}}Host(`{{ $s }}.{{ $d }}`){{ end }}'
defaultRule: '{{ .Labels "com.docker.compose.service" }}{{ env `NASCOMPOSE_DOMAIN` }}'
file:
directory: /etc/traefik/dynamic/