You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
1.7 KiB
71 lines
1.7 KiB
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
namespace: dev-environment
|
|
name: trialytix-config-backend-testing
|
|
labels:
|
|
app: trialytix
|
|
data:
|
|
DJANGO_DB_ENGINE: django.db.backends.postgresql_psycopg2
|
|
DJANGO_DB_NAME: trialytix-testing
|
|
DJANGO_DB_USER: trialytix-testing
|
|
DJANGO_DB_PASSWORD: trialytix-testing
|
|
DJANGO_DB_HOST: postgres-lb
|
|
ALLOWED_HOSTS: '["*"]'
|
|
FRONTEND_URL: 'http://trialytix-testing.k3s.semapp.lan'
|
|
REACT_APP_PROD_API_URL: 'http://trialytix-testing.k3s.semapp.lan'
|
|
api_url: 'http://trialytix-testing.k3s.semapp.lan'
|
|
FRONTEND_PORT: '8100'
|
|
BACKEND_PORT: '5100'
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
namespace: dev-environment
|
|
name: nginx-trialytix-conf
|
|
data:
|
|
default.conf: |
|
|
upstream backend {
|
|
server backend:5100;
|
|
}
|
|
|
|
server {
|
|
listen 8100;
|
|
|
|
#server_name trialytix-qa.semapp.lan;
|
|
|
|
access_log /var/log/nginx/access.log;
|
|
charset utf-8;
|
|
client_max_body_size 1G;
|
|
|
|
location / {
|
|
root /srv/trialytix;
|
|
#add_header X-Frame-Options "SAMEORIGIN";
|
|
index index.html index.htm;
|
|
try_files $uri /index.html =404;
|
|
}
|
|
|
|
location ~ ^/api {
|
|
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';
|
|
|
|
expires off;
|
|
open_file_cache off;
|
|
sendfile off;
|
|
}
|
|
|
|
|