30 lines
585 B
Plaintext
30 lines
585 B
Plaintext
|
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;
|
||
|
}
|