Merge pull request #242 from ndthuan/master

Defaults to using requested host as Aria2 RPC host
This commit is contained in:
hamza zia 2016-08-19 10:25:10 +08:00 committed by GitHub
commit 2e67c0ab66
2 changed files with 15 additions and 1 deletions

View File

@ -4,7 +4,7 @@ angular
.constant('$titlePattern', 'active: {active} - waiting: {waiting} - stopped: {stopped} — {name}') .constant('$titlePattern', 'active: {active} - waiting: {waiting} - stopped: {stopped} — {name}')
.constant('$pageSize', 11) // number of downloads shown before pagination kicks in .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 .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', path: '/jsonrpc',
port: 6800, port: 6800,
encrypt: false, encrypt: false,

14
docker-compose.yml Normal file
View File

@ -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