This commit is contained in:
parent
bee2e150e1
commit
e041e4c490
@ -5,6 +5,20 @@ metadata:
|
||||
name: app
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
nginx.org/location-snippets:
|
||||
nginx.ingress.kubernetes.io/configuration-snippet: |
|
||||
more_set_headers X-Frame-Options SAMEORIGIN;
|
||||
more_set_headers X-Content-Type-Options nosniff;
|
||||
more_set_headers X-XSS-Protection "1; mode=block";
|
||||
more_set_headers Content-Security-Policy "frame-ancestors 'self'";
|
||||
|
||||
nginx.ingress.kubernetes.io/server-snippet: |
|
||||
if ($request_uri = "/") {
|
||||
more_set_headers "Cache-Control: no-cache";
|
||||
}
|
||||
if ($request_uri ~* "^/(config.*\.json|i18n|home|sites|index\.html)$") {
|
||||
more_set_headers "Cache-Control: no-cache, no-store, must-revalidate";
|
||||
}
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
tls:
|
||||
|
Loading…
Reference in New Issue
Block a user