diff --git a/hosting/kubernetes/nginx/nginx.conf b/hosting/kubernetes/nginx/nginx.conf index 688b72a4df..1598bf9909 100644 --- a/hosting/kubernetes/nginx/nginx.conf +++ b/hosting/kubernetes/nginx/nginx.conf @@ -25,6 +25,7 @@ http { client_max_body_size 1k; ignore_invalid_headers off; proxy_buffering off; + port_in_redirect off; log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' @@ -36,6 +37,7 @@ http { server { listen 10000 default_server; + listen [::]:10000 default_server; server_name _; # Security Headers @@ -50,6 +52,12 @@ http { } location = / { + proxy_http_version 1.1; + proxy_set_header Connection $connection_upgrade; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://app-service.budibase.svc.cluster.local:4002; } diff --git a/hosting/proxy/nginx.conf b/hosting/proxy/nginx.conf index 06283d579b..b7ea9011c9 100644 --- a/hosting/proxy/nginx.conf +++ b/hosting/proxy/nginx.conf @@ -25,6 +25,7 @@ http { client_max_body_size 1k; ignore_invalid_headers off; proxy_buffering off; + port_in_redirect off; log_format main '$remote_addr - $remote_user [$time_local] "$request" ' @@ -37,6 +38,7 @@ http { server { listen 10000 default_server; + listen [::]:10000 default_server; server_name _; client_max_body_size 1000m; ignore_invalid_headers off;