Add HSTS header and discovery config 12

This commit is contained in:
Ruben Hensen
2025-02-04 14:52:30 +01:00
parent 531d3e0bf4
commit fb03a78d31
+7 -2
View File
@@ -42,6 +42,10 @@ spec:
$CONFIG = array ( $CONFIG = array (
'trusted_proxies' => ['10.0.0.0/8', '192.168.1.1/32'], 'trusted_proxies' => ['10.0.0.0/8', '192.168.1.1/32'],
); );
nginx:
config:
headers:
Strict-Transport-Security: "max-age=15768001; includeSubDomains;"
phpClientHttpsFix: phpClientHttpsFix:
enabled: true enabled: true
protocol: https protocol: https
@@ -50,8 +54,8 @@ spec:
className: nginx className: nginx
annotations: annotations:
nginx.ingress.kubernetes.io/proxy-body-size: 100G nginx.ingress.kubernetes.io/proxy-body-size: 100G
nginx.ingress.kubernetes.io/configuration-snippet: | # nginx.ingress.kubernetes.io/configuration-snippet: |
more_set_headers "Strict-Transport-Security: max-age=15768000; includeSubDomains"; # more_set_headers "Strict-Transport-Security: max-age=15768000; includeSubDomains";
# kubernetes.io/tls-acme: "true" # kubernetes.io/tls-acme: "true"
cert-manager.io/cluster-issuer: prod-cluster-issuer cert-manager.io/cluster-issuer: prod-cluster-issuer
# # Keep this in sync with the README.md: # # Keep this in sync with the README.md:
@@ -86,6 +90,7 @@ spec:
labels: {} labels: {}
path: / path: /
pathType: Prefix pathType: Prefix
syncPolicy: syncPolicy:
syncOptions: syncOptions: