2022-08-17 08:02:16 +00:00
|
|
|
add_header Onion-Location http://jf.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
|
2022-10-21 20:40:01 +00:00
|
|
|
add_header X-I2P-Location http://vernaaamyu2hcxaoscotjmivcqhqdn77bbftpbilmrbcxqt6f32a.b32.i2p$request_uri;
|
2022-08-17 08:02:16 +00:00
|
|
|
|
|
|
|
client_max_body_size 5120M;
|
|
|
|
|
|
|
|
location / {
|
2022-09-06 03:12:07 +00:00
|
|
|
proxy_pass http://localhost:8096/;
|
2022-08-17 08:02:16 +00:00
|
|
|
proxy_redirect off;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
proxy_set_header X-Forwarded-Protocol $scheme;
|
|
|
|
proxy_set_header X-Forwarded-Host $http_host;
|
|
|
|
proxy_buffering off;
|
|
|
|
}
|
2023-07-18 22:46:34 +00:00
|
|
|
|
|
|
|
location /socket {
|
|
|
|
# Proxy Jellyfin Websockets traffic
|
|
|
|
proxy_pass http://localhost:8096;
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
proxy_set_header X-Forwarded-Protocol $scheme;
|
|
|
|
proxy_set_header X-Forwarded-Host $http_host;
|
|
|
|
}
|
2023-11-20 07:03:34 +00:00
|
|
|
if ($badagent) {
|
|
|
|
return 403;
|
|
|
|
}
|