Fix X-Forwarded-Proto header being http in tandoor

main
trivernis 1 year ago
parent 9595ebca62
commit b6b7361f78
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -1,15 +1,12 @@
apiVersion: traefik.containo.us/v1alpha1 apiVersion: traefik.containo.us/v1alpha1
kind: Middleware kind: Middleware
metadata: metadata:
name: security-headers name: tandoor-headers
namespace: default namespace: tandoor
spec: spec:
headers: headers:
stsSeconds: 15768000 customRequestHeaders:
contentTypeNosniff: true X-Forwarded-Proto: https
browserXssFilter: true
referrerPolicy: same-origin
customFrameOptionsValue: SAMEORIGIN
--- ---
apiVersion: traefik.containo.us/v1alpha1 apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute kind: IngressRoute
@ -33,6 +30,7 @@ spec:
middlewares: middlewares:
- name: security-headers - name: security-headers
namespace: default namespace: default
- name: tandoor-headers
services: services:
- name: tandoor - name: tandoor
port: 8080 port: 8080
Loading…
Cancel
Save