From 29db7a63ff06fbfa932b787f950d6ca16c7016a7 Mon Sep 17 00:00:00 2001 From: Kload Date: Tue, 29 Oct 2013 15:05:20 +0000 Subject: [PATCH] Add index of completed directory --- conf/nginx.conf | 4 ++++ scripts/install | 1 + 2 files changed, 5 insertions(+) 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