mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-09-17 02:12:55 +02:00
Add HSTS header and discovery config 10
This commit is contained in:
@@ -40,7 +40,7 @@ spec:
|
|||||||
proxy.config.php: |
|
proxy.config.php: |
|
||||||
<?php
|
<?php
|
||||||
$CONFIG = array (
|
$CONFIG = array (
|
||||||
'trusted_proxies' => ['10.0.0.0/8'],
|
'trusted_proxies' => ['10.0.0.0/8', '192.168.1.1/32'],
|
||||||
);
|
);
|
||||||
phpClientHttpsFix:
|
phpClientHttpsFix:
|
||||||
enabled: true
|
enabled: true
|
||||||
@@ -54,31 +54,31 @@ spec:
|
|||||||
more_set_headers "Strict-Transport-Security: max-age=15552000; includeSubDomains";
|
more_set_headers "Strict-Transport-Security: max-age=15552000; 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:
|
||||||
nginx.ingress.kubernetes.io/server-snippet: |
|
# nginx.ingress.kubernetes.io/server-snippet: |
|
||||||
server_tokens off
|
# server_tokens off
|
||||||
proxy_hide_header X-Powered-By;
|
# proxy_hide_header X-Powered-By;
|
||||||
rewrite ^/.well-known/webfinger /index.php/.well-known/webfinger last;
|
# rewrite ^/.well-known/webfinger /index.php/.well-known/webfinger last;
|
||||||
rewrite ^/.well-known/nodeinfo /index.php/.well-known/nodeinfo last;
|
# rewrite ^/.well-known/nodeinfo /index.php/.well-known/nodeinfo last;
|
||||||
rewrite ^/.well-known/host-meta /public.php?service=host-meta last;
|
# rewrite ^/.well-known/host-meta /public.php?service=host-meta last;
|
||||||
rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json;
|
# rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json;
|
||||||
location = /.well-known/carddav {
|
# location = /.well-known/carddav {
|
||||||
return 301 $scheme://$host/remote.php/dav;
|
# return 301 $scheme://$host/remote.php/dav;
|
||||||
}
|
# }
|
||||||
location = /.well-known/caldav {
|
# location = /.well-known/caldav {
|
||||||
return 301 $scheme://$host/remote.php/dav;
|
# return 301 $scheme://$host/remote.php/dav;
|
||||||
}
|
# }
|
||||||
location = /robots.txt {
|
# location = /robots.txt {
|
||||||
allow all;
|
# allow all;
|
||||||
log_not_found off;
|
# log_not_found off;
|
||||||
access_log off;
|
# access_log off;
|
||||||
}
|
# }
|
||||||
location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ {
|
# location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ {
|
||||||
deny all;
|
# deny all;
|
||||||
}
|
# }
|
||||||
location ~ ^/(?:autotest|occ|issue|indie|db_|console) {
|
# location ~ ^/(?:autotest|occ|issue|indie|db_|console) {
|
||||||
deny all;
|
# deny all;
|
||||||
}
|
# }
|
||||||
tls:
|
tls:
|
||||||
- secretName: nextcloud-tls
|
- secretName: nextcloud-tls
|
||||||
hosts:
|
hosts:
|
||||||
|
|||||||
Reference in New Issue
Block a user