I have Traefik 2 up and running on a server with a bunch of my other docker services. I have a separate synology NAS and another laptop I want to install nextcloud on. I've added a file to the rules folder to access the nas but it's not working.
Here is my nas.yml
http:
routers:
nas-rtr:
rule: "HostHeader(`nas.example.me`)"
entryPoints:
- https
middlewares:
- chain-no-auth
service: nas-svc
tls:
certResolver: dns-cloudflare
services:
nas-svc:
loadBalancer:
servers:
- url: "http://192.168.10.123:788"
This is my middleware chain for no auth contains the rate limit and secure-headers middleware. Here they are
http:
middlewares:
middlewares-rate-limit:
rateLimit:
average: 100
burst: 50
middlewares-secure-headers:
headers:
accessControlAllowMethods:
- GET
- OPTIONS
- PUT
accessControlMaxAge: 100
hostsProxyHeaders:
- "X-Forwarded-Host"
sslRedirect: true
stsSeconds: 63072000
stsIncludeSubdomains: true
stsPreload: true
forceSTSHeader: true
# frameDeny: true #overwritten by customFrameOptionsValue
customFrameOptionsValue: "allow-from https:example.me" #CSP takes care of this but may be needed for organizr.
contentTypeNosniff: true
browserXssFilter: true
# sslForceHost: true # add sslHost to all of the services
# sslHost: "example.me"
referrerPolicy: "same-origin"
# Setting contentSecurityPolicy is more secure but it can break things. Proper auth will reduce the risk.
# the below line also breaks some apps due to 'none' - sonarr, radarr, etc.
# contentSecurityPolicy: "frame-ancestors '*.example.me:*';object-src 'none';script-src 'none';"
featurePolicy: "camera 'none'; geolocation 'none'; microphone 'none'; payment 'none'; usb 'none'; vr 'none';"
customResponseHeaders:
X-Robots-Tag: "none,noarchive,nosnippet,notranslate,noimageindex,"
server: ""
Any help would be greatly appreciated.