Configuration cleanup
This commit is contained in:
35
traefik/config/security.yaml
Normal file
35
traefik/config/security.yaml
Normal file
@@ -0,0 +1,35 @@
|
||||
# This file contains services for security and authorization
|
||||
|
||||
http:
|
||||
services:
|
||||
http-catchall:
|
||||
# A dummy service for the http-catchall rule
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: http://dummy-url
|
||||
|
||||
routers:
|
||||
http-catchall:
|
||||
# Catch all requests to the http entrypoint and redirect them to https
|
||||
service: http-catchall
|
||||
rule: hostregexp(`{host:.+}`)
|
||||
entrypoint: web
|
||||
middlewares:
|
||||
- redir
|
||||
|
||||
middlewares:
|
||||
redir:
|
||||
# Redirect to https
|
||||
redirectScheme:
|
||||
scheme: https
|
||||
permanent: true
|
||||
|
||||
auth:
|
||||
# Go through authelia for authorization
|
||||
forwardAuth:
|
||||
address: http://authelia:9091/api/verify?rd=https://auth.{{ env "PRIVATE_DOMAIN" }}/%23/
|
||||
trustForwardHeader: true
|
||||
authResponseHeaders:
|
||||
- X-Forwarded-User
|
||||
insecureSkipVerify: true
|
||||
|
||||
Reference in New Issue
Block a user