mirror of
https://github.com/YunoHost-Apps/flood_ynh.git
synced 2024-09-03 18:36:20 +02:00
config file for flood
This commit is contained in:
parent
f3e16daa41
commit
c5d032c032
1 changed files with 50 additions and 0 deletions
50
conf/config.js
Normal file
50
conf/config.js
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
// This is the configuration file for Flood, a React-based frontend for the
|
||||||
|
// rtorrent BitTorrent client.
|
||||||
|
// Copy this file to ./config.js and make changes below.
|
||||||
|
// config.js must exist before running `npm run build`.
|
||||||
|
|
||||||
|
const CONFIG = {
|
||||||
|
// The URL that Flood will be served from. For example, if you intend to
|
||||||
|
// serve from http://example.com/flood, set this to '/flood'.
|
||||||
|
baseURI: 'DATA_DIR',
|
||||||
|
// Flood uses a local nedb database to keep track of users, torrents,
|
||||||
|
// and activity. The database is regularly purged to remove outdated data.
|
||||||
|
// This value dictates how old data is, in milliseconds, before being purged.
|
||||||
|
dbCleanInterval: 1000 * 60 * 60,
|
||||||
|
// Where to store the local nedb database.
|
||||||
|
dbPath: './server/db/',
|
||||||
|
// The host that Flood should listen for web connections on.
|
||||||
|
// If you want to connect to Flood from hosts other that the one it is running
|
||||||
|
// on, you should change this value.
|
||||||
|
// To listen on all interfaces, change to `floodServerHost: '0.0.0.0'`
|
||||||
|
floodServerHost: '127.0.0.1',
|
||||||
|
// The port that Flood should listen for web connections on.
|
||||||
|
floodServerPort: 3001,
|
||||||
|
// Used for development. See the "Local Development" section of README.md
|
||||||
|
// for detail.
|
||||||
|
floodServerProxy: 'http://127.0.0.1',
|
||||||
|
// Flood keeps a history of torrent download and upload speeds.
|
||||||
|
// This value dictates the number of individual records per period to keep.
|
||||||
|
maxHistoryStates: 30,
|
||||||
|
// How often (in milliseconds) Flood will check for updates to torrent detail.
|
||||||
|
pollInterval: 1000 * 5,
|
||||||
|
// How often (in milliseconds) Flood will check rtorrent for status updates.
|
||||||
|
torrentClientPollInterval: 1000 * 2,
|
||||||
|
// A unique secret for signing messages with JWT (see https://jwt.io). Change
|
||||||
|
// this to something unique and hard to guess.
|
||||||
|
secret: 'flood',
|
||||||
|
// Configuration details for your backend rtorrent interface.
|
||||||
|
// These are defaults for most installs; check your .rtorrent.rc for changes.
|
||||||
|
scgi: {
|
||||||
|
host: 'localhost',
|
||||||
|
port: 5000,
|
||||||
|
socket: false,
|
||||||
|
socketPath: '/tmp/rtorrent.sock'
|
||||||
|
},
|
||||||
|
// Configuration for SSL, if using SSL with the Flood service directly.
|
||||||
|
ssl: false,
|
||||||
|
sslKey: '/absolute/path/to/key/',
|
||||||
|
sslCert: '/absolute/path/to/certificate/'
|
||||||
|
};
|
||||||
|
// Do not remove the below line.
|
||||||
|
module.exports = CONFIG;
|
Loading…
Reference in a new issue