2020-12-31 01:39:32 +00:00
|
|
|
# /etc/nginx/sites-available/default
|
2022-12-05 17:58:23 +00:00
|
|
|
# Simple proxy_pass for PiSCSI-web
|
2020-12-31 01:39:32 +00:00
|
|
|
server {
|
2021-09-21 01:17:17 +00:00
|
|
|
listen [::]:80 default_server;
|
|
|
|
listen 80 default_server;
|
2022-08-01 12:47:23 +00:00
|
|
|
listen 443 ssl http2;
|
|
|
|
listen [::]:443 ssl http2;
|
|
|
|
|
2022-12-05 17:58:23 +00:00
|
|
|
ssl_certificate /etc/ssl/certs/piscsi-web.crt;
|
|
|
|
ssl_certificate_key /etc/ssl/private/piscsi-web.key;
|
2022-08-01 12:47:23 +00:00
|
|
|
ssl_session_timeout 1d;
|
|
|
|
ssl_session_cache shared:MozSSL:10m;
|
|
|
|
ssl_session_tickets off;
|
|
|
|
ssl_protocols TLSv1.3;
|
|
|
|
ssl_prefer_server_ciphers off;
|
2021-09-21 01:17:17 +00:00
|
|
|
|
2020-12-31 01:39:32 +00:00
|
|
|
location / {
|
2021-08-24 23:37:54 +00:00
|
|
|
proxy_pass http://127.0.0.1:8080;
|
2020-12-31 01:39:32 +00:00
|
|
|
}
|
|
|
|
|
2021-05-13 17:48:11 +00:00
|
|
|
# Large files
|
2021-05-13 17:41:30 +00:00
|
|
|
client_max_body_size 0;
|
2021-05-13 17:48:11 +00:00
|
|
|
proxy_read_timeout 1000;
|
|
|
|
proxy_connect_timeout 1000;
|
|
|
|
proxy_send_timeout 1000;
|
2021-05-13 17:41:30 +00:00
|
|
|
|
2020-12-31 01:39:32 +00:00
|
|
|
error_page 502 /502.html;
|
|
|
|
location = /502.html {
|
|
|
|
root /var/www/html/;
|
|
|
|
}
|
2021-09-21 01:17:17 +00:00
|
|
|
}
|