-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
89 lines (85 loc) · 2.05 KB
/
config.py
File metadata and controls
89 lines (85 loc) · 2.05 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Configuration constants and service definitions
import os
from pathlib import Path
# Service choices for the installer
SERVICE_CHOICES = [
{
"name": "qBittorrent",
"value": "qbittorrent",
"checked": True,
"description": "Torrent client",
},
{
"name": "Prowlarr",
"value": "prowlarr",
"checked": True,
"description": "Indexer manager",
},
{
"name": "Radarr",
"value": "radarr",
"checked": True,
"description": "Movie collection manager",
},
{
"name": "Sonarr",
"value": "sonarr",
"checked": True,
"description": "TV series collection manager",
},
{
"name": "Jellyfin",
"value": "jellyfin",
"checked": True,
"description": "Media server",
},
{
"name": "Jellyseerr",
"value": "jellyseerr",
"checked": True,
"description": "Request management for Jellyfin",
},
{
"name": "Bazarr",
"value": "bazarr",
"checked": True,
"description": "Subtitle management",
},
{
"name": "FlareSolverr",
"value": "flaresolverr",
"checked": True,
"description": "Cloudflare bypass for indexers",
},
{
"name": "Dashy",
"value": "dashy",
"checked": True,
"description": "Dashboard for all services",
},
]
# Default paths
DEFAULT_INSTALL_PATH = "C:\\Server" if os.name == "nt" else "/opt/server"
# Service port mappings
SERVICE_PORTS = {
"qbittorrent": 8080,
"prowlarr": 9696,
"radarr": 7878,
"sonarr": 8989,
"jellyfin": 8096,
"jellyseerr": 5055,
"bazarr": 6767,
"flaresolverr": 8191,
"dashy": 4000,
}
# Service directory mappings
SERVICE_DIRS = {
"qbittorrent": "config/qbittorrent",
"prowlarr": "config/prowlarr",
"radarr": "config/radarr",
"sonarr": "config/sonarr",
"jellyfin": "config/jellyfin",
"jellyseerr": "config/jellyseerr",
"bazarr": "config/bazarr",
"dashy": "config/dashy",
}