Last active
October 19, 2023 10:25
-
-
Save chetan/5fa5366ed7adfe11c92ae667c1fbedec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream subsonic { | |
server 127.0.0.1:8089; | |
} | |
server { | |
listen 80; | |
server_tokens off; | |
server_name subsonic; | |
location @subsonic { | |
sendfile off; | |
proxy_pass http://subsonic; | |
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_max_temp_file_size 0; | |
#this is the maximum upload size | |
client_max_body_size 10m; | |
client_body_buffer_size 128k; | |
proxy_connect_timeout 90; | |
proxy_send_timeout 90; | |
#proxy_read_timeout 90; | |
proxy_buffer_size 4k; | |
proxy_buffers 4 32k; | |
proxy_busy_buffers_size 64k; | |
proxy_temp_file_write_size 64k; | |
## Required for Websockets | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "upgrade"; | |
proxy_read_timeout 36000s; ## Timeout after 10 hours | |
} | |
location / { | |
rewrite ^(.*)$ /subsonic/$1 last; | |
} | |
location /subsonic { | |
try_files $uri @subsonic; | |
} | |
} |
@m1dnight it's been quite a while since I've used subsonic, but IIRC the above config worked for me without any issues. Have not tried any recent versions.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this. I've been reverse proxying Subsonic for a while and I got issues with songs not completely finishing in the new streamed player. This has solved it for me, as far as I can tell.
Did you have these issues too?