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