Forked from containeroo-gists/traefik-external-routing-bonus-config.yml
Created
August 6, 2021 22:23
-
-
Save shawnhank/8de14e8adc9c2d0cd98f1e79c319c527 to your computer and use it in GitHub Desktop.
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
http: | |
routers: | |
pihole: | |
entryPoints: | |
- "https" | |
rule: "Host(`pihole.example.com`)" | |
middlewares: | |
- default-headers | |
- addprefix-pihole | |
tls: | |
certResolver: http | |
service: pihole | |
synology: | |
entryPoints: | |
- "https" | |
rule: "Host(`synology.example.com`)" | |
middlewares: | |
- default-headers | |
tls: | |
certResolver: http | |
service: synology | |
services: | |
pihole: | |
loadBalancer: | |
servers: | |
- url: "http://192.168.0.10:80" | |
passHostHeader: true | |
synology: | |
loadBalancer: | |
servers: | |
- url: "http://192.168.0.11:5000" | |
passHostHeader: true | |
middlewares: | |
addprefix-pihole: | |
addPrefix: | |
prefix: "/admin" | |
https-redirect: | |
redirectScheme: | |
scheme: https | |
default-headers: | |
headers: | |
frameDeny: true | |
sslRedirect: true | |
browserXssFilter: true | |
contentTypeNosniff: true | |
forceSTSHeader: true | |
stsIncludeSubdomains: true | |
stsPreload: true | |
default-whitelist: | |
ipWhiteList: | |
sourceRange: | |
- "10.0.0.0/24" | |
- "192.168.0.0/16" | |
- "172.0.0.0/8" | |
secured: | |
chain: | |
middlewares: | |
- default-whitelist | |
- default-headers |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment