-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.yml
68 lines (54 loc) · 2.23 KB
/
config.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
version: 1
# amqp config for connecting to amqp server
amqp:
host: "localhost"
port: 5672
user: "guest"
password: "guest"
# amqp url has higher priority than amqp config object
amqpUrl: ''
# AppId Host Map is a mapping that used for JobExecutor or JobScheduler to replace the access url from the message
# the remote url will be replaced with host defined in the mapping. there is no default value, if appid is not found,
# no replacement will occur.
appIdHostMap:
# main_site is for downloading files from the main website (currently albireo)
main_site: "http://localhost:8000/"
test_download_manager: "http://localhost:8000/"
# Config Below is for JobExecutor
# support variable:
# ${cwd}: current working directory
# ${home}: user's home directory
# ${project_root}: project's root directory
# the job executor profile path, default is ~/.mira/video-manager
jobExecProfileDir: "${project_root}/temp"
# the job executor's temp directory for copied/downloaded video files, default is ${jobExecProfileDir}/temp
videoTempDir: "${project_root}/temp/video"
# the maximum execution time of a job, a job will be rescheduled if it exceeds the maximum time. unit is minutes
maxJobProcessTime: 300
# How long will the job executor keep processed files and downloaded files for successful jobs
fileRetentionDays: 3
# How long will the job executor keep processed files and downloaded files for failed jobs
failedFileRetentionDays: 10
# how many threads can ffmpeg use for encoding, it should be less than your cpu cores, if the value is 0, then no limit is added
# if the value is negative. then it will use (<logical cores> - maxThreadsToProcess) threads
maxThreadsToProcess: -1
# used for composing the url for downloading output file from job executor, default is http://localhost:8000/output/
WebServer:
enableHttps: false
host: "localhost"
port: 8082
ApiWebServer:
enableHttps: false
host: "localhost"
port: 8083
# base path for job log.
jobLogPath: '${project_root}/log/jobs'
# expire time for jobs, unit is days
jobExpireTime:
Canceled: 1
UnrecoverableError: 7
Finished: 2
# fonts directory that can be used by ffmpeg
fontsDir: ${project_root}/fonts
# will deprecate once Albireo is deprecated
albireoRPC: 'http://localhost:8080'