aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles/ansible-vvp-templates/files/configmaps/nginx-cms-configmap.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/ansible-vvp-templates/files/configmaps/nginx-cms-configmap.yaml')
-rw-r--r--ansible/roles/ansible-vvp-templates/files/configmaps/nginx-cms-configmap.yaml8
1 files changed, 6 insertions, 2 deletions
diff --git a/ansible/roles/ansible-vvp-templates/files/configmaps/nginx-cms-configmap.yaml b/ansible/roles/ansible-vvp-templates/files/configmaps/nginx-cms-configmap.yaml
index 89adf32..638d248 100644
--- a/ansible/roles/ansible-vvp-templates/files/configmaps/nginx-cms-configmap.yaml
+++ b/ansible/roles/ansible-vvp-templates/files/configmaps/nginx-cms-configmap.yaml
@@ -58,8 +58,12 @@ data:
client_max_body_size 75M; # adjust to taste
location / {
- uwsgi_pass cms_upstream;
- include /etc/nginx/uwsgi_params;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Forwarded-Proto https;
+ proxy_set_header Host $http_host;
+ proxy_redirect off;
+
+ proxy_pass http://cms-uwsgi;
}
}
server {