about summary refs log tree commit diff
path: root/bundles/copyparty/files/copyparty.conf
blob: a087c3857ca6b0e5ff7c5d2201654f7feef90693 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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