2025-01-13, 09:51 PM
(This post was last modified: 2025-01-13, 09:53 PM by jbamford. Edited 1 time in total.)
Hi sorry for such a slow reply, Christmas came up been a bit busy, I have disabled Buffering and removed /web from the server block, I didn't have /web in the server block when it first occurred si i added it from the Jellyfin installation guide.
I will report back once I have watched a few things to see if it happens, interesting thing though it doesn't do it outside the network via the FQDN of the server only internally. I shall do some more investigating if it happens again though.
Regards
I will report back once I have watched a few things to see if it happens, interesting thing though it doesn't do it outside the network via the FQDN of the server only internally. I shall do some more investigating if it happens again though.
Code:
server {
listen 80;
server_name domain.uk;
return 301 https://domain.uk$request_uri;
}
#map $http_upgrade $connection_upgrade {
# default upgrade;
# '' close;
server {
listen 443;
server_name domain.uk;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-Content-Type-Options "nosniff";
add_header X-XSS-Protection "0";
ssl_certificate /etc/letsencrypt/live/domain.uk/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/domain.uk/privkey.pem;
include /etc/nginx/common/ssl.conf;
keepalive_timeout 65; # Time (in seconds) to keep the connection open
keepalive_requests 100; # Max number of requests per connection
client_max_body_size 100M;
location / {
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_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_pass http://10.10.0.21:8096;
proxy_buffering off;
proxy_buffers 16 4k;
proxy_buffer_size 4k;
proxy_busy_buffers_size 8k;
proxy_temp_file_write_size 8k;
proxy_max_temp_file_size 16k;
proxy_connect_timeout 60s;
proxy_send_timeout 60s;
proxy_read_timeout 60s;
}
location /socket {
proxy_pass http://10.10.0.21: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;
proxy_connect_timeout 60s;
proxy_send_timeout 60s;
proxy_read_timeout 60s;
}
location ~ /Items/(.*)/Images {
proxy_pass http://10.10.0.21:8096;
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;
}
Regards