Browse Source

Trying to load static for efc admin

feat/rm-qa
Antun Franjin 4 years ago
parent
commit
136d9e431b
  1. 17
      dev/efc/deployment.yaml

17
dev/efc/deployment.yaml

@ -70,7 +70,7 @@ spec:
persistentVolumeClaim: persistentVolumeClaim:
claimName: efc-pvc-dev claimName: efc-pvc-dev
- name: efc-dev-static - name: efc-dev-static
emptyDir: {}
--- ---
# Persistent Volume Claim description # Persistent Volume Claim description
apiVersion: v1 apiVersion: v1
@ -174,21 +174,6 @@ data:
send_timeout 300s; send_timeout 300s;
} }
location /static {
proxy_pass http://backend/static;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_read_timeout 300s;
proxy_send_timeout 300s;
send_timeout 300s;
}
error_page 404 =200 /index.html; error_page 404 =200 /index.html;
add_header 'Cache-Control' 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0'; add_header 'Cache-Control' 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';

Loading…
Cancel
Save