diff --git a/conf/nginx.conf b/conf/nginx.conf index 25ff34d..05302d2 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -4,3 +4,7 @@ location PATHTOCHANGE/transmission { location PATHTOCHANGE { proxy_pass http://127.0.0.1:9091/; } +location PATHTOCHANGE/downloads { + alias /home/yunohost.transmission/completed/; + autoindex on; +} diff --git a/scripts/install b/scripts/install index e5fc7a9..bb69385 100644 --- a/scripts/install +++ b/scripts/install @@ -32,6 +32,7 @@ sudo apt-get install transmission-daemon -y -qq sudo mkdir -p /home/yunohost.transmission/{progress,completed} sudo chgrp debian-transmission /home/yunohost.transmission/{progress,completed} sudo chmod 770 -R /home/yunohost.transmission/{progress,completed} +sudo chown -R www-data /home/yunohost.transmission/completed # Configure Transmission and reload sed -i "s@PATHTOCHANGE@$path@g" ../conf/settings.json