Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save containeroo-gists/b896f685cd8fd2f4f6ac3d823f044436 to your computer and use it in GitHub Desktop.
Save containeroo-gists/b896f685cd8fd2f4f6ac3d823f044436 to your computer and use it in GitHub Desktop.
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
@aguerrave
Copy link

aguerrave commented Mar 2, 2020

hi, super bonus thank you ... But I want to explain my settings and see if what I want to do is possible with this bonus. I have a proxmox with several virtual machines. 1 ct has atrafik 2.0 installed and traffic 80 and 443 are redirected to it. All virtual machines are on the 10.0.0.0/24 network so as not to complicate me. In a wordpress server I only have "404 page not found". What may I be missing? Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment