tls:
options:
securetls:
sniStrict: true
minVersion: VersionTLS12
cipherSuites:
- TLS_CHACHA20_POLY1305_SHA256
- TLS_AES_256_GCM_SHA384
- TLS_AES_128_GCM_SHA256
- TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
- TLS_RSA_WITH_AES_256_GCM_SHA384
http:
middlewares:
googleAuth:
forwardAuth:
address: "https://oauth.mydomain.com"
trustForwardHeader: true
authResponseHeaders:
- "X-Forwarded-User"
secureHeaders:
headers:
FrameDeny: true
SSLRedirect: true
stsSeconds: 315360000
stsPreload: true
stsIncludeSubdomains: true
contentTypeNosniff: true
browserXssFilter: true
X-Custom-Request-Header: "X-Robots-Tag=noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex"
Traefik 2.0 example config with google forward-auth
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.