webui-aria2/configuration.js

38 lines
1.7 KiB
JavaScript
Raw Normal View History

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',
])
;