|
|
|
@ -18,10 +18,6 @@ spec: |
|
|
|
labels: |
|
|
|
app: efc-dev |
|
|
|
spec: |
|
|
|
# securityContext: |
|
|
|
# runAsUser: 1000 |
|
|
|
# runAsGroup: 1000 |
|
|
|
# fsGroup: 1000 |
|
|
|
containers: |
|
|
|
- name: efc-frontend |
|
|
|
image: packages.semapp.lan:5000/efc-admin_frontend:develop |
|
|
|
@ -61,16 +57,20 @@ 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 |
|
|
|
- configMapRef: |
|
|
|
name: efc-dev-config-dev |
|
|
|
volumes: |
|
|
|
- name: nginx-conf |
|
|
|
configMap: |
|
|
|
name: nginx-conf |
|
|
|
- name: efc-pv-dev |
|
|
|
persistentVolumeClaim: |
|
|
|
claimName: efc-pvc-dev |
|
|
|
- name: nginx-conf |
|
|
|
configMap: |
|
|
|
name: nginx-conf |
|
|
|
- name: efc-pv-dev |
|
|
|
persistentVolumeClaim: |
|
|
|
claimName: efc-pvc-dev |
|
|
|
- name: efc-dev-static |
|
|
|
emptyDir: {} |
|
|
|
--- |
|
|
|
# Persistent Volume Claim description |
|
|
|
apiVersion: v1 |
|
|
|
@ -105,7 +105,6 @@ data: |
|
|
|
DJANGO_DB_PORT: "5432" |
|
|
|
ALLOWED_HOSTS: '["*"]' |
|
|
|
FRONTEND_URL: "http://efc-dev.k3s.semapp.lan" |
|
|
|
# API_URL: "http://efc-dev.k3s.semapp.lan/" |
|
|
|
REACT_APP_PROD_API_URL: "http://efc-dev.k3s.semapp.lan/" |
|
|
|
REACT_APP_DEV_API_URL: http://efc-dev.k3s.semapp.lan/ |
|
|
|
PORT_FRONTEND: '8500' |
|
|
|
@ -175,6 +174,19 @@ data: |
|
|
|
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; |
|
|
|
|