Guest User

Untitled

a guest
Nov 4th, 2020
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.04 KB | None | 0 0
  1. http:
  2.   middlewares:
  3.     middlewares-basic-auth:
  4.       basicAuth:
  5.        # users:
  6.         #   - "user:$apsdfs.$EntPC0w3FtswWvC/6fTVJ7IUVtX1"
  7.         usersFile: "/shared/.htpasswd" #be sure to mount the volume through docker-compose.yml
  8.         realm: "Traefik 2 Basic Auth"
  9.  
  10.     middlewares-rate-limit:
  11.       rateLimit:
  12.         average: 100
  13.         burst: 50
  14.  
  15.     middlewares-secure-headers:
  16.       headers:
  17.         accessControlAllowMethods:
  18.          - GET
  19.           - OPTIONS
  20.           - PUT
  21.         accessControlMaxAge: 100
  22.         hostsProxyHeaders:
  23.          - "X-Forwarded-Host"
  24.         sslRedirect: true
  25.         stsSeconds: 63072000
  26.         stsIncludeSubdomains: true
  27.         stsPreload: true
  28.         forceSTSHeader: true
  29.         # frameDeny: true #overwritten by customFrameOptionsValue
  30.         customFrameOptionsValue: "allow-from https:EXAMPLE.COM" #CSP takes care of this but may be needed for organizr.
  31.         contentTypeNosniff: true
  32.         browserXssFilter: true
  33.         # sslForceHost: true # add sslHost to all of the services
  34.         # sslHost: "EXAMPLE.COM"
  35.         referrerPolicy: "same-origin"
  36.         # Setting contentSecurityPolicy is more secure but it can break things. Proper auth will reduce the risk.
  37.         # the below line also breaks some apps due to 'none' - sonarr, radarr, etc.
  38.         # contentSecurityPolicy: "frame-ancestors '*.EXAMPLE.COM:*';object-src 'none';script-src 'none';"
  39.         featurePolicy: "camera 'none'; geolocation 'none'; microphone 'none'; payment 'none'; usb 'none'; vr 'none';"
  40.         customResponseHeaders:
  41.           X-Robots-Tag: "none,noarchive,nosnippet,notranslate,noimageindex,"
  42.           server: ""
  43.  
  44.     middlewares-authelia:
  45.       forwardAuth:
  46.         address: "http://authelia:9091/api/verify?rd=https://authelia.EXAMPLE.COM"
  47.         trustForwardHeader: true
  48.         authResponseHeaders:
  49.          - "Remote-User"
  50.           - "Remote-Groups"
  51.  
  52.     bw-stripPrefix:
  53.       stripPrefix:
  54.         prefixes:
  55.          - "/notifications/hub"
  56.         forceSlash: false
Add Comment
Please, Sign In to add comment