From cfee23515449a73a16d1984c314174e69929e623 Mon Sep 17 00:00:00 2001 From: Thuan Nguyen Date: Sat, 13 Aug 2016 20:44:04 +0700 Subject: [PATCH 1/2] Automatically use requested host as Aria2 RPC host by default --- configuration.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuration.js b/configuration.js index 10fe943..4a4c27d 100644 --- a/configuration.js +++ b/configuration.js @@ -4,7 +4,7 @@ angular .constant('$titlePattern', 'active: {active} - waiting: {waiting} - stopped: {stopped} — {name}') .constant('$pageSize', 11) // number of downloads shown before pagination kicks in .constant('$authconf', { // default authentication configuration, never fill it in case the webui is hosted in public IP as it can be compromised - host: 'localhost', + host: location.protocol.startsWith('http') ? location.hostname : 'localhost', path: '/jsonrpc', port: 6800, encrypt: false, From d91103787f493a0125241ec1478f09fb5beedf26 Mon Sep 17 00:00:00 2001 From: Thuan Nguyen Date: Sat, 13 Aug 2016 20:47:45 +0700 Subject: [PATCH 2/2] Configure docker-compose using lightweight aria2 and httpd images for local use --- docker-compose.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..6a20e96 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,14 @@ +aria2: + image: ndthuan/aria2-alpine + volumes: + - $HOME/Downloads:/downloads + ports: + - "6800:6800" + +httpd: + image: busybox + volumes: + - ./:/usr/html + ports: + - "80:80" + command: /bin/busybox httpd -f -p 80 -h /usr/html