forked from UnicornTranscoder/UnicornTranscoder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
35 lines (30 loc) · 1.53 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/**
* Created by drouar_b on 27/04/2017.
*/
const env = require('getenv');
module.exports = {
port: env.int ('SERVER_PORT', 3000),
host: env.string('SERVER_LISTEN', '127.0.0.1'),
transcoder_decay_time: env.int ('TRANSCODER_DECAY_TIME', 120),
loadbalancer_address: env.string('LOADBALANCER_ADDRESS', 'https://unicornloadbalancer.myplex.com'),
ping_frequency: env.int ('PING_FREQUENCY', 10),
instance_address: env.string('INSTANCE_ADDRESS', 'https://unicorntranscoder.myplex.com'),
transcoder: {
plex_arch: env.string('PLEX_ARCH', 'linux-ubuntu-x86_64'),
plex_build: env.string('PLEX_BUILD', '1.14.1.5488-cc260c476'),
codecs_build: env.string('CODECS_BUILD', '531e313-1328'),
plex_resources: env.string('PLEX_RESOURCES', 'plexmediaserver/'),
temp_folder: env.string('TEMP_FOLDER', 'cache/'),
codecs_folder: env.string('CODECS_FOLDER', 'codecs/'),
plex_transcoder: env.string('PLEX_TRANSCODER', 'Plex Transcoder'),
eae_version: env.string('EAE_VERSION', '141'),
},
performance: {
maxSessions: env.int('MAX_SESSIONS', 10),
maxDownloads: env.int('MAX_DOWNLOADS', 10),
maxTranscodes: env.int('MAX_TRANSCODE', 10),
},
//routing: {
// 'US': 'http://usgateway.myplex.com'
//},
};