|
@@ -332,6 +332,11 @@ metadata:
|
|
|
ingress.kubernetes.io/ssl-redirect: "true"
|
|
|
nginx.org/redirect-to-https: "false"
|
|
|
nginx.org/location-snippets: |
|
|
|
+ if ($request_method = 'GET') {
|
|
|
+ add_header 'Access-Control-Allow-Origin' '*';
|
|
|
+ add_header 'Access-Control-Allow-Methods' 'GET,POST,OPTIONS,PUT';
|
|
|
+ add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
|
|
|
+ }
|
|
|
if ($request_method = 'POST') {
|
|
|
add_header 'Access-Control-Allow-Origin' '*';
|
|
|
add_header 'Access-Control-Allow-Methods' 'GET,POST,OPTIONS,PUT';
|
|
@@ -474,9 +479,9 @@ metadata:
|
|
|
nginx.org/proxy-connect-timeout: "60s"
|
|
|
nginx.org/proxy-read-timeout: "60s"
|
|
|
# Uncomment to allow solving HTTP01 challenge
|
|
|
- nginx.org/hsts: "false"
|
|
|
- ingress.kubernetes.io/ssl-redirect: "false"
|
|
|
- nginx.org/redirect-to-https: "false"
|
|
|
+ nginx.org/hsts: "true"
|
|
|
+ ingress.kubernetes.io/ssl-redirect: "true"
|
|
|
+ nginx.org/redirect-to-https: "true"
|
|
|
spec:
|
|
|
tls:
|
|
|
- hosts:
|