piratebox-web/piratebox_nginx.conf

30 lines
585 B
Plaintext
Raw Normal View History

2019-08-04 08:28:03 +00:00
server {
listen 80;
listen 443 ssl http2;
server_name piratebox.lan;
charset utf-8;
location / {
root /opt/piratebox;
index index.html;
}
location /piratebox/ {
proxy_pass http://aiohttp;
proxy_redirect off;
proxy_buffering off;
proxy_request_buffering off;
client_max_body_size 16G;
}
location /Shared/ {
proxy_pass http://aiohttp;
proxy_redirect off;
proxy_buffering off;
}
}
upstream aiohttp {
server unix:/run/piratebox/piratebox.sock fail_timeout=0;
}