Browse Source

add static-backend.

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

17
dev/efc/deployment.yaml

@ -57,9 +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
volumes:
@ -69,7 +66,6 @@ spec:
- name: efc-pv-dev
persistentVolumeClaim:
claimName: efc-pvc-dev
- name: efc-dev-static
---
# Persistent Volume Claim description
@ -180,6 +176,19 @@ data:
send_timeout 300s;
}
location /static-backend {
proxy_pass http://backend;
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;
add_header 'Cache-Control' 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';

Loading…
Cancel
Save