diff --git a/README.md b/README.md index 093c8f9..fa22cb0 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ webui-aria2  -The aim for this project is to create the worlds best and hottest interface to interact with aria2. aria2 is the worlds best file downloader, but sometimes the command line brings more power than necessary. The project was created as part of the GSOC scheme with tremendous support and feedback from the aria2 community. +The aim for this project is to create the worlds best and hottest interface to interact with aria2. aria2 is the worlds best file downloader, but sometimes the command line brings more power than necessary. The project was initially created as part of the GSOC scheme, however it has rapidly grown and changed with tremendous support and feedback from the aria2 community. Very simple to use, no build scripts, no installation scripts. First start aria2 in the background either in your local machine or in a remote one. You can do that as follows: ````bash @@ -13,13 +13,17 @@ If aria2 is not installed in your local machine then head on to http://aria2.sou Then download the webui, you can either do that by downloading this repository and running index.html in the browser. Or you could just head on to http://ziahamza.github.io/webui-aria2/ and just start downloading files! After that you can also save it for offline use by saving from the browser save page as option. +Configuration +============= +Read and edit [configuration.js](configuration.js). + Dependencies ============ Well, you need aria2. And a web browser (if that even counts!) Support ======= -For any support, feature request and bug report add an issue in the github project tab or head on the aria2 forums (https://sourceforge.net/apps/phpbb/aria2) and post your issue there. +For any support, feature request and bug report add an issue in the github project. [link](https://github.com/ziahamza/webui-aria2/issues) License ======= diff --git a/configuration.js b/configuration.js new file mode 100644 index 0000000..85426a6 --- /dev/null +++ b/configuration.js @@ -0,0 +1,37 @@ +angular +.module('webui.services.configuration', []) +.constant('$name', 'webui-aria2') // name used accross the entire UI +.constant('$globalTimeout', 1000) // interval to update the individual downloads +.constant('$authconf', { // default authentication configuration, never fill it in case the webui is hosted in public IP as it can be compromised + host: 'localhost', + port: 6800, + encrypt: false, + auth: { // either add the token field or the user and pass field, not both. + // token: '$YOUR_SECRET_ATOKEN$', + // user: '*YOUR_USERNAME*', + // pass: '*YOUR_SECRET_PASS*', + } +}) +.constant('$enable', { + + torrent: true, // bittorrent support only enabled if supported by aria2 build, set to false otherwise to permanantly disable it + + metalink: true, // metalink support only enabled if supported by aria2 build, set to false to permanantly disable it + + sidebar: { // configuration related to the sidebar next to the list of downloads + show: true, // set to false to completly hide the sidebar. Other elements inside will be automatically hidden + + stats: true, // set to false to hide the global statistic section (containts the speed graph for now) + + filters: true, // set to false to hide the Download Filters + + starredProps: true, // only shown when atleast one property is added to the starred list, set to false to permanantly hide the Quick Access Settings inside the sidebar + } +}) +.constant('$starredProps', [ // default list of Quick Access Properties. Can be overwriden by making modification through the Global Settings dialog + // go to Global Settings dialog to see their description + 'dir', 'conf-path', 'auto-file-renaming', 'max-connection-per-server', +]) +; + + diff --git a/index.html b/index.html index e6ccd26..3393b27 100755 --- a/index.html +++ b/index.html @@ -45,6 +45,7 @@ + @@ -52,7 +53,6 @@ - @@ -112,12 +112,12 @@ By URIs -