Advertisement
AdVitiya

fileConfig.yml

Apr 29th, 2022
1,009
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.36 KB | None | 0 0
  1.   ## MIDDLEWARES ##
  2.   middlewares:
  3.     auth:
  4.       forwardauth:
  5.         address: http://192.168.29.10:9001/api/verify?rd=https://authelia.DOMAIN.com/ # replace auth with your authelia container name
  6.         trustForwardHeader: true
  7.         authResponseHeaders:
  8.          - Remote-User
  9.           - Remote-Groups
  10.           - Remote-Name
  11.           - Remote-Email
  12.  
  13.     # Authelia basic auth guard
  14.     auth-basic:
  15.       forwardauth:
  16.         address: http://192.168.29.10:9001/api/verify?auth=basic # replace auth with your authelia container name
  17.         trustForwardHeader: true
  18.         authResponseHeaders:
  19.          - Remote-User
  20.           - Remote-Groups
  21.           - Remote-Name
  22.           - Remote-Email
  23.  
  24.     # Security headers
  25.     securityHeaders:
  26.       headers:
  27.         customResponseHeaders:
  28.           X-Robots-Tag: "none,noarchive,nosnippet,notranslate,noimageindex"
  29.           server: ""
  30.           X-Forwarded-Proto: "https"
  31.         sslProxyHeaders:
  32.           X-Forwarded-Proto: https
  33.         referrerPolicy: "strict-origin-when-cross-origin"
  34.         hostsProxyHeaders:
  35.          - "X-Forwarded-Host"
  36.         customRequestHeaders:
  37.           X-Forwarded-Proto: "https"
  38.         contentTypeNosniff: true
  39.         browserXssFilter: true
  40.         forceSTSHeader: true
  41.         stsIncludeSubdomains: true
  42.         stsSeconds: 63072000
  43.         stsPreload: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement