70 lines
2.0 KiB
Plaintext
70 lines
2.0 KiB
Plaintext
server {
|
|
listen 8001 ssl http2;
|
|
listen [::]:8001 ssl http2;
|
|
|
|
ssl_certificate /etc/ssl/certs/services.pem;
|
|
ssl_certificate_key /etc/ssl/private/services.key;
|
|
ssl_protocols TLSv1.2;
|
|
ssl_ciphers 'ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256';
|
|
ssl_prefer_server_ciphers on;
|
|
ssl_session_cache shared:SSL:1m;
|
|
ssl_session_timeout 1d;
|
|
ssl_session_tickets off;
|
|
|
|
access_log /var/log/nginx/pandora.access.log;
|
|
error_log /var/log/nginx/pandora.error.log;
|
|
|
|
location /favicon.ico {
|
|
root /srv/pandora/static;
|
|
}
|
|
|
|
location /static/ {
|
|
root /srv/pandora;
|
|
autoindex off;
|
|
}
|
|
|
|
location /data/ {
|
|
internal;
|
|
root /srv/pandora;
|
|
}
|
|
|
|
location /api/ws/ {
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $http_host;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
proxy_set_header Proxy "";
|
|
proxy_redirect off;
|
|
proxy_buffering off;
|
|
proxy_read_timeout 999999999;
|
|
proxy_pass http://127.0.0.1:2622/;
|
|
}
|
|
|
|
location / {
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
proxy_set_header X-Forwarded-Proto http;
|
|
proxy_set_header Host $http_host;
|
|
proxy_set_header Proxy "";
|
|
proxy_redirect off;
|
|
proxy_buffering off;
|
|
proxy_read_timeout 90;
|
|
proxy_connect_timeout 90;
|
|
if (!-f $request_filename) {
|
|
proxy_pass http://127.0.0.1:2620;
|
|
break;
|
|
}
|
|
client_max_body_size 32m;
|
|
}
|
|
|
|
error_page 400 /;
|
|
error_page 404 /404.html;
|
|
location /404.html {
|
|
root /srv/pandora/static/html;
|
|
}
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
location /50x.html {
|
|
root /srv/pandora/static/html;
|
|
}
|
|
}
|