about summary refs log tree commit diff
path: root/bundles/copyparty/files/copyparty.conf
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bundles/copyparty/files/copyparty.conf67
1 files changed, 67 insertions, 0 deletions
diff --git a/bundles/copyparty/files/copyparty.conf b/bundles/copyparty/files/copyparty.conf
new file mode 100644
index 0000000..a087c38
--- /dev/null
+++ b/bundles/copyparty/files/copyparty.conf
@@ -0,0 +1,67 @@
+# vim: ft=ini et sw=2:
+
+[global]
+  # enable colors in log messages (both in logfiles and stdout)
+  # ansi
+  # disable logging for more performance
+  q
+
+  # trust traefik
+  rproxy: 1
+  xff-src: 10.89.0.0/16
+
+  # use user/group from authelia middleware
+  idp-h-usr: remote-user
+  idp-h-grp: remote-groups
+  idp-login: https://login.gzr.im/?rd=https://cp.gzr.im{dst}
+
+
+  # df: 16           # stop accepting uploads if less than 16 GB free disk space
+  # ver              # show copyparty version in the controlpanel
+  # grid             # show thumbnails/grid-view by default
+  # theme: 2         # monokai
+  # name: datasaver  # change the server-name that's displayed in the browser
+
+  # enable the prometheus endpoint, but disable the dupes counter (too slow)
+  stats, nos-dup
+
+  # make it harder for search engines to read your server
+  no-robots, force-js
+
+  # panic and shutdown instead of just showing the warning
+  vc-exit
+
+  html-head: <link rel="stylesheet" href="/custom.css">
+
+[/]
+  /w
+  accs:
+    # read-write-move-delete-admin
+    rwmda: @admins
+  flags:
+    e2ds       # enable file indexing & filesystem-scanning
+    e2ts       # enable metadata indexing
+
+[/public]
+  /w/public
+  accs:
+    r: *
+    rw: nobody
+    # read-write-move-delete-admin
+    rwmda: @admins
+
+[/u]
+  /w/u
+  accs:
+    rwmda: @admins
+
+[/u/${u}]
+  /w/u/${u}
+  accs:
+    r: *
+    rwmda: ${u}, @admins
+
+[/www]
+  /var/www
+  accs:
+    rwmda: @admins