forked from SimpleHomelab/docker-traefik
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Several updates 2024_01_22. See full commit log.
* Changed domain name variables to align with hostnames (and their prefixes/suffixes) I implemented in the previous commit - DOMAINNAME_CLOUD_SERVER is now DOMAINNAME_HS - DOMAINNAME_HOME_SYNOLOGY is now DOMAINNAME_DS918 - DOMAINNAME_SHB is now DOMAINNAME_WS * Replace Traefik/Cloudflare ACME validation from using Email and Global API Key to Scoped API Toekn (CF_DNS_API_TOKEN). Deleted unwated secrets. * Split middlewares.yml to individual middleware YML files - to align with Auto-Traefik. * Split middlewares-chains.yml to individual chain YML files - to align with Auto-Traefik. * Moved some of the media apps to Media Server docker stack (docker-compose-mds.yml) * Added more example file providers for various scenarios.
- Loading branch information
1 parent
3554676
commit 546bf74
Showing
126 changed files
with
737 additions
and
449 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
appdata/traefik2/rules/ds918/app-ds918-dsm-oauth.yml.example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
http: | ||
routers: | ||
synology-rtr: | ||
rule: "Host(`dsm.{{env "DOMAINNAME_DS918"}}`)" | ||
entryPoints: | ||
- https | ||
middlewares: | ||
- chain-oauth | ||
service: synology-svc | ||
tls: | ||
certResolver: dns-cloudflare | ||
options: tls-opts@file | ||
services: | ||
synology-svc: | ||
loadBalancer: | ||
servers: | ||
- url: "http://192.168.1.254:5000" |
17 changes: 17 additions & 0 deletions
17
appdata/traefik2/rules/ds918/app-ds918-video-oauth.yml.example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
http: | ||
routers: | ||
synology-video-rtr: | ||
rule: "Host(`video.{{env "DOMAINNAME_DS918"}}`)" | ||
entryPoints: | ||
- https | ||
middlewares: | ||
- chain-oauth | ||
service: synology-video-svc | ||
tls: | ||
certResolver: dns-cloudflare | ||
options: tls-opts@file | ||
services: | ||
synology-video-svc: | ||
loadBalancer: | ||
servers: | ||
- url: "http://192.168.1.254:5003" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
http: | ||
middlewares: | ||
chain-basic-auth: | ||
chain: | ||
middlewares: | ||
- middlewares-rate-limit | ||
- middlewares-https-redirectscheme | ||
- middlewares-secure-headers | ||
- middlewares-basic-auth | ||
- middlewares-compress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
http: | ||
middlewares: | ||
chain-no-auth: | ||
chain: | ||
middlewares: | ||
- middlewares-rate-limit | ||
- middlewares-https-redirectscheme | ||
- middlewares-secure-headers | ||
- middlewares-compress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
http: | ||
middlewares: | ||
chain-oauth-external: | ||
chain: | ||
middlewares: | ||
- middlewares-rate-limit | ||
- middlewares-https-redirectscheme | ||
- middlewares-secure-headers | ||
- middlewares-oauth-external | ||
- middlewares-compress | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
http: | ||
middlewares: | ||
chain-oauth: | ||
chain: | ||
middlewares: | ||
- middlewares-rate-limit | ||
- middlewares-https-redirectscheme | ||
- middlewares-secure-headers | ||
- middlewares-oauth | ||
- middlewares-compress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
http: | ||
middlewares: | ||
middlewares-basic-auth: | ||
basicAuth: | ||
# users: | ||
# - "user:$apsdfswWvC/6.$E3FtsfTntPC0wVJ7IUVtX1" | ||
usersFile: "/run/secrets/htpasswd" #be sure to mount the volume through docker-compose.yml | ||
realm: "Traefik 2 Basic Auth" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
http: | ||
middlewares: | ||
middlewares-buffering: | ||
buffering: | ||
maxResponseBodyBytes: 2000000 | ||
maxRequestBodyBytes: 10485760 | ||
memRequestBodyBytes: 2097152 | ||
memResponseBodyBytes: 2097152 | ||
retryExpression: "IsNetworkError() && Attempts() <= 2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
http: | ||
middlewares: | ||
middlewares-compress: | ||
compress: {} |
6 changes: 6 additions & 0 deletions
6
appdata/traefik2/rules/ds918/middlewares-https-redirectscheme.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
http: | ||
middlewares: | ||
middlewares-https-redirectscheme: | ||
redirectScheme: | ||
scheme: https | ||
permanent: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
http: | ||
middlewares: | ||
middlewares-oauth-external: | ||
forwardAuth: | ||
address: "https://oauth.{{env "DOMAINNAME_DS918"}}" | ||
trustForwardHeader: true | ||
authResponseHeaders: | ||
- "X-Forwarded-User" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
http: | ||
middlewares: | ||
middlewares-oauth: | ||
forwardAuth: | ||
address: "http://oauth:4181" # Make sure you have the OAuth service in docker-compose.yml | ||
trustForwardHeader: true | ||
authResponseHeaders: | ||
- "X-Forwarded-User" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
http: | ||
middlewares: | ||
middlewares-rate-limit: | ||
rateLimit: | ||
average: 100 | ||
burst: 50 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
tls: | ||
options: | ||
tls-opts: | ||
minVersion: VersionTLS12 | ||
cipherSuites: | ||
- TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 | ||
- TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 | ||
- TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 | ||
- TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 | ||
- TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305 | ||
- TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305 | ||
- TLS_AES_128_GCM_SHA256 | ||
- TLS_AES_256_GCM_SHA384 | ||
- TLS_CHACHA20_POLY1305_SHA256 | ||
- TLS_FALLBACK_SCSV # Client is doing version fallback. See RFC 7507 | ||
curvePreferences: | ||
- CurveP521 | ||
- CurveP384 | ||
sniStrict: true |
4 changes: 2 additions & 2 deletions
4
appdata/traefik2/rules/hs/app-adguard-home-authelia.yml.example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
http: | ||
routers: | ||
splex-rtr: | ||
rule: "Host(`splex.{{env "DOMAINNAME_HS"}}`)" | ||
entryPoints: | ||
- https | ||
middlewares: | ||
- chain-oauth | ||
service: splex-svc | ||
tls: | ||
certResolver: dns-cloudflare | ||
options: tls-opts@file | ||
services: | ||
splex-svc: | ||
loadBalancer: | ||
servers: | ||
- url: "http://192.168.1.238:32400" |
22 changes: 22 additions & 0 deletions
22
appdata/traefik2/rules/hs/app-proxmox-ve-oauth.yml.example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
http: | ||
routers: | ||
proxmox-rtr: | ||
rule: "Host(`pve.{{env "DOMAINNAME_HS"}}`)" | ||
entryPoints: | ||
- https | ||
middlewares: | ||
- chain-oauth | ||
service: proxmox-svc | ||
tls: | ||
certResolver: dns-cloudflare | ||
options: tls-opts@file | ||
services: | ||
proxmox-svc: | ||
loadBalancer: | ||
passHostHeader: true | ||
serversTransport: "pve" | ||
servers: | ||
- url: "https://192.168.1.100:8006/" | ||
serversTransports: | ||
pve: | ||
insecureSkipVerify: true |
14 changes: 14 additions & 0 deletions
14
appdata/traefik2/rules/hs/app-second-domain-passthrough.yml.example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
tcp: | ||
routers: | ||
synology-traefik-rtr: | ||
entryPoints: | ||
- "https" | ||
rule: "HostSNIRegexp(`{{env "DOMAINNAME_DS918"}}`, `{subdomain:[a-z]+}.{{env "DOMAINNAME_DS918"}}`)" | ||
service: synology-traefik-svc | ||
tls: | ||
passthrough: true | ||
services: | ||
synology-traefik-svc: | ||
loadBalancer: | ||
servers: | ||
- address: "192.168.1.254:443" |
Oops, something went wrong.