aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles/ansible-vvp-templates/files/configmaps/nginx-em-configmap.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/ansible-vvp-templates/files/configmaps/nginx-em-configmap.yaml')
-rw-r--r--ansible/roles/ansible-vvp-templates/files/configmaps/nginx-em-configmap.yaml10
1 files changed, 7 insertions, 3 deletions
diff --git a/ansible/roles/ansible-vvp-templates/files/configmaps/nginx-em-configmap.yaml b/ansible/roles/ansible-vvp-templates/files/configmaps/nginx-em-configmap.yaml
index 0d7b279..52e208e 100644
--- a/ansible/roles/ansible-vvp-templates/files/configmaps/nginx-em-configmap.yaml
+++ b/ansible/roles/ansible-vvp-templates/files/configmaps/nginx-em-configmap.yaml
@@ -56,10 +56,14 @@ data:
listen 80;
charset utf-8;
client_max_body_size 75M; # adjust to taste
-
+
location / {
- uwsgi_pass em_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://em_upstream;
}
}