1amends "../../config/Service.pkl"
2
3import "../../config/site.pkl" as site
4
5name = "Copyparty"
6prepare = "prepare.py"
7stageIsolation = "fresh"
8
9secrets {
10 ["idp_header"] { bytes = 16 }
11}
12
13container {
14 image = "docker.io/copyparty/ac@sha256:b2054d65e05daa8982ca17c26b12b74315c0ce586a03ff9018a59c80731b9e19"
15
16 env {
17 ["PYTHONPATH"] = "/patch"
18 }
19
20 http {
21 containerPort = 3923
22 subdomain = "file"
23 checkPath = "/?h"
24 identityHeaders {
25 ["User-Name"] = "X-Auth-Request-Preferred-Username"
26 ["User-Groups"] = "X-Auth-Request-Groups"
27 }
28 identityProofSecret = "idp_header"
29 plainHostnames { "dav.\(site.domain)" }
30 overrideFiles {
31 ["/.static/"] = "static"
32 }
33 }
34
35 volumes {
36 ["/cfg"] {}
37 ["/w"] {}
38 ["/hooks/reject-apple-cruft.py"] { config = "reject-apple-cruft.py" }
39 ["/patch/sitecustomize.py"] { config = "share-delete.py" }
40 ["/w/clover"] { src = if (site.preview) null else site.cloverRoot; readOnly = site.cloverReadOnly }
41 ["/w/clover/Media"] { src = if (site.preview) null else site.mediaRoot; readOnly = site.mediaReadOnly }
42 ["/w/media"] { src = if (site.preview) null else site.mediaRoot; readOnly = site.mediaReadOnly }
43 ["/w/logs"] { src = if (site.preview) null else "\(site.root)/logs"; readOnly = site.preview || site.cloverReadOnly }
44 }
45}