2014-06-02 21:36:21 +02:00
angular
. module ( 'webui.services.configuration' , [ ] )
2015-03-22 12:31:54 +01:00
. constant ( '$name' , 'Aria2 WebUI' ) // name used across the entire UI
. constant ( '$titlePattern' , 'active: {active} - waiting: {waiting} - stopped: {stopped} — {name}' )
2014-06-02 22:02:23 +02:00
. constant ( '$pageSize' , 11 ) // number of downloads shown before pagination kicks in
2014-06-02 21:36:21 +02:00
. constant ( '$authconf' , { // default authentication configuration, never fill it in case the webui is hosted in public IP as it can be compromised
host : 'localhost' ,
2015-09-12 10:55:02 +02:00
path : '/jsonrpc' ,
2014-06-02 21:36:21 +02:00
port : 6800 ,
encrypt : false ,
auth : { // either add the token field or the user and pass field, not both.
2015-03-22 12:31:54 +01:00
// token: '$YOUR_SECRET_TOKEN$'
/*-----------------------------*/
2014-06-02 21:36:21 +02:00
// user: '*YOUR_USERNAME*',
2015-03-22 12:31:54 +01:00
// pass: '*YOUR_SECRET_PASS*'
2015-04-28 19:31:04 +02:00
} ,
directURL : '' // If supplied, links will be created to enable direct download from the aria2 server, requires appropriate webserver to be configured
2014-06-02 21:36:21 +02:00
} )
. constant ( '$enable' , {
2015-03-22 12:31:54 +01:00
torrent : true , // bittorrent support only enabled if supported by aria2 build, set to false otherwise to permanently disable it
2014-06-02 21:36:21 +02:00
2015-03-22 12:31:54 +01:00
metalink : true , // metalink support only enabled if supported by aria2 build, set to false to permanently disable it
2014-06-02 21:36:21 +02:00
sidebar : { // configuration related to the sidebar next to the list of downloads
2015-03-22 12:31:54 +01:00
show : true , // set to false to completely hide the sidebar. Other elements inside will be automatically hidden
2014-06-02 21:36:21 +02:00
2015-03-22 12:31:54 +01:00
stats : true , // set to false to hide the global statistic section (contains the speed graph for now)
2014-06-02 21:36:21 +02:00
filters : true , // set to false to hide the Download Filters
2015-03-22 12:31:54 +01:00
starredProps : true // only shown when at least one property is added to the starred list, set to false to permanently hide the Quick Access Settings inside the sidebar
2014-06-02 21:36:21 +02:00
}
} )
2015-03-22 12:31:54 +01:00
. constant ( '$starredProps' , [ // default list of Quick Access Properties. Can be overridden by making modification through the Global Settings dialog
2014-06-02 21:36:21 +02:00
// go to Global Settings dialog to see their description
2015-03-22 12:31:54 +01:00
'dir' , 'conf-path' , 'auto-file-renaming' , 'max-connection-per-server'
2014-06-02 21:36:21 +02:00
] )
2014-06-07 15:34:32 +02:00
. constant ( '$downloadProps' , [ // Similar to starred Quick Access properties but for adding new downloads.
// go to Advance Download Options when adding a new download to view the list of possible options
2015-08-28 15:46:32 +02:00
'http-user' , 'http-passwd' , 'pause' , 'dir' , 'max-connection-per-server'
2014-06-07 15:34:32 +02:00
] )
2014-06-02 22:02:23 +02:00
. constant ( '$globalTimeout' , 1000 ) // interval to update the individual downloads
2014-06-02 21:36:21 +02:00
;