diff --git a/dev/efc/deployment.yaml b/dev/efc/deployment.yaml index 39a78aa..2c74d88 100644 --- a/dev/efc/deployment.yaml +++ b/dev/efc/deployment.yaml @@ -57,8 +57,6 @@ spec: volumeMounts: - mountPath: /opt/efc/storage name: efc-pv-dev - - mountPath: /opt/efc/static - name: efc-dev-static envFrom: - configMapRef: name: efc-dev-config-dev @@ -69,8 +67,7 @@ spec: - name: efc-pv-dev persistentVolumeClaim: claimName: efc-pvc-dev - - name: efc-dev-static - emptyDir: {} + --- # Persistent Volume Claim description apiVersion: v1 @@ -135,6 +132,12 @@ data: try_files $uri $uri /index.html =404; } + location /administration { + root /srv/efc; + index index.html index.htm; + try_files $uri $uri /index.html =404; + } + location ~ ^/api { proxy_pass http://backend; proxy_redirect off; @@ -172,10 +175,10 @@ data: proxy_read_timeout 300s; proxy_send_timeout 300s; send_timeout 300s; - } + } - location /static { - proxy_pass http://backend/static; + location /static-backend { + proxy_pass http://backend; proxy_redirect off; proxy_set_header Host $host; @@ -187,8 +190,6 @@ data: send_timeout 300s; } - - error_page 404 =200 /index.html; add_header 'Cache-Control' 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';