1amends "../../config/Service.pkl"
2
3import "../../config/site.pkl" as site
4import "../../config/OpenID.pkl" as sso
5
6name = "Jellyfin"
7healthyDeadline = "20m"
8healthRestartGrace = "20m"
9prepare = "prepare.py"
10setup = "configure.py"
11
12secrets { ["admin_password"] {} }
13
14requirements {
15 new sso.Client {
16 clientId = module.id
17 name = module.name
18 redirectUris {
19 "https://\(module.container.http.hostname)/sso/OID/r/snow"
20 "https://\(module.container.http.hostname)/sso/OID/redirect/snow"
21 }
22 }
23}
24
25container {
26 image = "docker.io/jellyfin/jellyfin@sha256:7da5184caa38c553f219f6772476540081f392a68049e2b68c923f6daf877f8e"
27 cpu = 500
28 memory = 3072
29
30 http {
31 containerPort = 8096
32 subdomain = "jelly"
33 checkPath = "/health"
34 metricsPath = "/metrics"
35 overrideFiles {
36 ["/web/extra/"] = "theme"
37 ["/web/extra/cloverfin.css"] = "theme/cloverfin.css"
38 }
39 headHtml {
40 ["/web/"] = "<link rel=\"stylesheet\" href=\"/web/extra/cloverfin.css\">"
41 ["/web/index.html"] = "<link rel=\"stylesheet\" href=\"/web/extra/cloverfin.css\">"
42 }
43 }
44
45 volumes {
46 ["/config"] {}
47 ["/cache"] {}
48 for (name, folder in site.jellyfinFolders) {
49 ["/media/jellyfin/\(name)"] { src = "\(site.mediaRoot)/\(folder)"; readOnly = true }
50 }
51 ["/config/config/branding.xml"] { config = "branding.xml" }
52 ["/etc/ssl/certs/ca-certificates.crt"] {
53 src = "/var/lib/snowglobe/ca-bundle.crt"
54 readOnly = true
55 }
56 }
57
58 env {
59 ["JELLYFIN_PublishedServerUrl"] = "https://\(module.container.http.hostname)"
60 }
61}