2019-09-04 20:50:53 +02:00
|
|
|
events {}
|
|
|
|
|
|
|
|
http {
|
2019-09-05 11:18:42 +02:00
|
|
|
gzip on;
|
|
|
|
gzip_comp_level 2;
|
|
|
|
gzip_min_length 1000;
|
|
|
|
gzip_proxied expired no-cache no-store private auth;
|
2019-09-04 20:50:53 +02:00
|
|
|
|
2019-09-05 11:18:42 +02:00
|
|
|
include mime.types;
|
2019-09-04 20:50:53 +02:00
|
|
|
upstream server {
|
|
|
|
server server:3000;
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
2019-09-12 08:36:56 +02:00
|
|
|
if ($scheme = http) {
|
|
|
|
return 301 https://$server_name$request_uri;
|
|
|
|
}
|
2019-09-04 20:50:53 +02:00
|
|
|
listen 80;
|
|
|
|
autoindex on;
|
|
|
|
root /www/data;
|
|
|
|
|
|
|
|
location /api/ {
|
|
|
|
proxy_pass http://server;
|
|
|
|
proxy_redirect off;
|
|
|
|
rewrite ^/api(.*)$ $1 break;
|
2019-09-05 11:18:42 +02:00
|
|
|
proxy_hide_header Content-Type;
|
|
|
|
add_header Content-Type "application/json";
|
|
|
|
}
|
|
|
|
|
|
|
|
location /auditorium/ {
|
|
|
|
try_files $uri $uri/ /auditorium/index.html;
|
2019-09-04 20:50:53 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|