-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.py.example
More file actions
60 lines (49 loc) · 2.29 KB
/
config.py.example
File metadata and controls
60 lines (49 loc) · 2.29 KB
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
# Configuration for Distributed Encodes Manager
# ==============================================================================
# SERVER SETTINGS
# ==============================================================================
SERVER_HOST = '0.0.0.0'
SERVER_PORT = 5000
# The URL workers and users will use to access the manager
# Example: "http://192.168.1.50:5000/" or "https://www.yourdomain.com/"
SERVER_URL_DISPLAY = "https://encode.fractumseraph.net/"
# ==============================================================================
# AUTHENTICATION
# ==============================================================================
ADMIN_USER = "admin"
ADMIN_PASS = "changeme" # [!] CHANGE THIS!
# Security Tokens (Generate new random strings for production)
WORKER_SECRET = "ChangeThisToALongRandomString"
SECRET_KEY = "ChangeThisToAnotherRandomString"
# ==============================================================================
# FILE & DIRECTORY SETTINGS
# ==============================================================================
# Local folder to scan for source files
SOURCE_DIRECTORY = "./source_media"
# Folder where finished encodes will be saved
COMPLETED_DIRECTORY = "./completed_media"
# Remote HTTP Source (Optional)
# If set, the manager will scan this URL for mp4/mkv files.
# Workers v1.9.0+ will download directly from this URL.
# Example: "http://192.168.1.100:8080/"
# REMOTE_SOURCE_URL = "http://IP:PORT/"
REMOTE_SOURCE_URL = None
WORKER_TEMPLATE_FILE = "worker_template.py"
VIDEO_EXTENSIONS = ('.mkv', '.mp4', '.avi', '.mov')
# ==============================================================================
# DATABASE SETTINGS
# ==============================================================================
DB_FILE = "encoding_jobs.db"
# Database Mode:
# 'disk' = Standard file-based.
# 'ram' = Load into Memory.
DB_MODE = 'ram'
# Write-Ahead Logging (WAL):
# True = Faster, better concurrency (Recommended for Local Disk & RAM)
# False = Slower, strictly serial (Use ONLY if DB is on a Network Share/NAS)
USE_WAL_MODE = True
# ==============================================================================
# RATE LIMITING
# ==============================================================================
# Limits how many jobs a single IP can TAKE per hour.
RATE_LIMIT_JOBS_PER_HOUR = 15