Fix nginx config in kubernetes deployment
authorPhilippe Pepiot <philippe.pepiot@logilab.fr>
Thu, 16 May 2019 17:43:33 +0200
changeset 105 3f2b56402a8e
parent 104 03949823c563
child 106 c8e6db0a7613
Fix nginx config in kubernetes deployment
deploy/deployment.yaml
--- a/deploy/deployment.yaml	Thu May 16 17:42:02 2019 +0200
+++ b/deploy/deployment.yaml	Thu May 16 17:43:33 2019 +0200
@@ -8,7 +8,7 @@
     server {
       listen 8000 default_server;
       root /etc/cubicweb.d/fresh/data;
-      rewrite ^/intra/(.*) /$1 last;
+      rewrite ^/fresh/(.*) /$1 last;
 
       location / {
         proxy_pass http://127.0.0.1:8080;
@@ -16,7 +16,7 @@
         proxy_buffering off;
         # This make cubicweb-signedrequest works even if HTTP Host header is
         # not supposed to contains URL path...
-        proxy_set_header Host $host/intra;
+        proxy_set_header Host $host/fresh;
         proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
         proxy_set_header X-Remote-user $http_x_remote_user;