Compare commits

..

2 commits

Author SHA1 Message Date
5456ce68ef
Fix authelia middleware
All checks were successful
continuous-integration/drone/push Build is passing
2022-03-26 00:04:37 +01:00
49f9f0be08
Prepare default backend 2022-03-26 00:04:05 +01:00
3 changed files with 31 additions and 3 deletions

View file

@ -102,5 +102,6 @@
# - traefik-sa.yml.j2 # - traefik-sa.yml.j2
- traefik-ingressroute.yml.j2 - traefik-ingressroute.yml.j2
# - traefik-svc.yml.j2 # - traefik-svc.yml.j2
# - traefik-defaultbackend.yml.j2
tags: traefik tags: traefik

View file

@ -0,0 +1,16 @@
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: cheese
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: web,websecure
traefik.ingress.kubernetes.io/router.priority: "1"
traefik.ingress.kubernetes.io/router.middlewares: security_headers@file,compress@file
spec:
defaultBackend:
service:
name: stilton
port:
number: 80

View file

@ -51,13 +51,24 @@ data:
# users: # users:
# - {{ basic_auth_data }} # - {{ basic_auth_data }}
{% endif %} {% endif %}
{% if false %}
authelia: authelia:
forwardAuth: forwardAuth:
address: "http://authelia:9091/api/verify?rd=https://login.example.com/" address: "http://authelia:9091/api/verify?rd=https://login.example.com/"
trustForwardHeader: true trustForwardHeader: true
authReponseHeaders: ["Remote-User", "Remote-Groups", "Remote-Name", "Remote-Email"] authResponseHeaders:
{% endif %} - "Remote-User"
- "Remote-Groups"
- "Remote-Name"
- "Remote-Email"
authelia-basic:
forwardAuth:
address: "http://authelia:9091/api/verify?auth=basic"
trustForwardHeader: true
authResponseHeaders:
- "Remote-User"
- "Remote-Groups"
- "Remote-Name"
- "Remote-Email"
traefik-tls-defaults-options.yaml: | traefik-tls-defaults-options.yaml: |
tls: tls: