# HG changeset patch
# User Philippe Pepiot <philippe.pepiot@logilab.fr>
# Date 1558021413 -7200
#      Thu May 16 17:43:33 2019 +0200
# Node ID 3f2b56402a8e46c4c828429e7b994a0a84aa26eb
# Parent  03949823c56327f0bd0e8c347853ce6c2f123afd
Fix nginx config in kubernetes deployment

diff --git a/deploy/deployment.yaml b/deploy/deployment.yaml
--- a/deploy/deployment.yaml
+++ b/deploy/deployment.yaml
@@ -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;