Guest User

middlewares.yml

a guest
Sep 20th, 2020
359
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. http:
  2. middlewares:
  3. middlewares-rate-limit:
  4. rateLimit:
  5. average: 100
  6. burst: 50
  7.  
  8. middlewares-secure-headers:
  9. headers:
  10. accessControlAllowMethods:
  11. - GET
  12. - OPTIONS
  13. - PUT
  14. accessControlMaxAge: 100
  15. hostsProxyHeaders:
  16. - "X-Forwarded-Host"
  17. sslRedirect: true
  18. stsSeconds: 63072000
  19. stsIncludeSubdomains: true
  20. stsPreload: true
  21. forceSTSHeader: true
  22. # frameDeny: true #overwritten by customFrameOptionsValue
  23. customFrameOptionsValue: "allow-from https:yourdomaingoeshere.com" #CSP takes care of this but may be needed for organizr.
  24. contentTypeNosniff: true
  25. browserXssFilter: true
  26. # sslForceHost: true # add sslHost to all of the services
  27. # sslHost: "example.com"
  28. referrerPolicy: "same-origin"
  29. # Setting contentSecurityPolicy is more secure but it can break things. Proper auth will reduce the risk.
  30. # the below line also breaks some apps due to 'none' - sonarr, radarr, etc.
  31. # contentSecurityPolicy: "frame-ancestors '*.example.com:*';object-src 'none';script-src 'none';"
  32. featurePolicy: "camera 'none'; geolocation 'none'; microphone 'none'; payment 'none'; usb 'none'; vr 'none';"
  33. customResponseHeaders:
  34. X-Robots-Tag: "none,noarchive,nosnippet,notranslate,noimageindex,"
  35. server: ""
  36.  
  37. middlewares-authelia:
  38. forwardAuth:
  39. address: "http://authelia:9091/api/verify?rd=https://authelia.yourdomaingoeshere.com"
  40. trustForwardHeader: true
  41. authResponseHeaders:
  42. - "Remote-User"
  43. - "Remote-Groups"
  44.  
Add Comment
Please, Sign In to add comment