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 http {
17 containerPort = 3923
18 subdomain = "file"
19 checkPath = "/?h"
20 identityHeaders {
21 ["User-Name"] = "X-Auth-Request-Preferred-Username"
22 ["User-Groups"] = "X-Auth-Request-Groups"
23 }
24 identityProofSecret = "idp_header"
25 plainHostnames { "dav.\(site.domain)" }
26 overrideFiles {
27 ["/.static/"] = "static"
28 }
29 }
30
31 volumes {
32 ["/cfg"] {}
33 ["/w"] {}
34 ["/hooks/reject-apple-cruft.py"] { config = "reject-apple-cruft.py" }
35 ["/w/clover"] { src = if (site.preview) null else site.cloverRoot; readOnly = site.cloverReadOnly }
36 ["/w/clover/Media"] { src = if (site.preview) null else site.mediaRoot; readOnly = site.mediaReadOnly }
37 ["/w/media"] { src = if (site.preview) null else site.mediaRoot; readOnly = site.mediaReadOnly }
38 ["/w/logs"] { src = if (site.preview) null else "\(site.root)/logs"; readOnly = site.preview || site.cloverReadOnly }
39 }
40}