56 lines
1.3 KiB
Text
56 lines
1.3 KiB
Text
upstream console {
|
|
server djangoapp:8000;
|
|
}
|
|
|
|
server {
|
|
|
|
# this is the internal Docker DNS, cache only for 30s
|
|
|
|
listen 80;
|
|
access_log /dev/stdout;
|
|
error_log stderr error;
|
|
|
|
client_max_body_size 500M;
|
|
|
|
location /delk {
|
|
rewrite ^/delk/(.*) /$1 break;
|
|
proxy_pass http://elasticsearch:9200;
|
|
}
|
|
|
|
|
|
location ~ ^/(en|ru)/license/ {
|
|
proxy_pass http://console;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header Host $host;
|
|
proxy_redirect off;
|
|
access_log off;
|
|
log_not_found off;
|
|
}
|
|
|
|
location ~ ^/ru/api/endpoint/(.+)/keepalive/$ {
|
|
proxy_pass http://console;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header Host $host;
|
|
proxy_redirect off;
|
|
access_log off;
|
|
log_not_found off;
|
|
}
|
|
|
|
location /ws/notifications/ {
|
|
proxy_pass http://console;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "Upgrade";
|
|
}
|
|
|
|
location / {
|
|
proxy_pass http://console;
|
|
}
|
|
location /static {
|
|
alias /usr/src/app/public/static;
|
|
}
|
|
location /media {
|
|
alias /usr/src/app/public/media;
|
|
}
|
|
|
|
}
|