I've previously had this set up ok, but can't seem to get working now. When I visit https://music.evilprofessor.co.uk then I get to subsonic but it immediately redirects to http at which can't it can't be loaded. I'm missing something in my configuration somewhere (and it will doubtless be simple)
Help appreciated!
nginx:
- Code: Select all
server {
listen 443;
ssl on;
server_name music.evilprofessor.co.uk;
access_log /var/log/nginx/subsonic.access.log;
error_log /var/log/nginx/subsonic.error.log;
ssl_certificate /etc/ssl/private/ssl.server.crt;
ssl_certificate_key /etc/ssl/private/ssl.server.key;
ssl_protocols SSLv2 SSLv3 TLSv1;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location / {
proxy_pass http://127.0.0.1:4040;
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;
}
}
/etc/default/subsonic
- Code: Select all
#
# This is the configuration file for the Subsonic service
# (/etc/init.d/subsonic)
#
# To change the startup parameters of Subsonic, modify
# the SUBSONIC_ARGS variable below.
#
# Type "subsonic --help" on the command line to read an
# explanation of the different options.
#
# For example, to specify that Subsonic should use port 80 (for http)
# and 443 (for https), and use a Java memory heap size of 200 MB, use
# the following:
#
# SUBSONIC_ARGS="--port=80 --https-port=443 --max-memory=200"
SUBSONIC_ARGS="--max-memory=150 --https-port=0 --port=4040"
# The user which should run the Subsonic process. Default "root".
# Note that non-root users are by default not allowed to use ports
# below 1024. Also make sure to grant the user write permissions in
# the music directories, otherwise changing album art and tags will fail.
SUBSONIC_USER=subsonic