mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
useful for docker/systemd stuff also makes logfiles flush to disk per line by default; can be disabled for a small performance gain with --no-logflush
34 lines
1 KiB
YAML
34 lines
1 KiB
YAML
# not actually YAML but lets pretend:
|
|
# -*- mode: yaml -*-
|
|
# vim: ft=yaml:
|
|
|
|
|
|
# put this file in /etc/
|
|
|
|
|
|
[global]
|
|
e2dsa # enable file indexing and filesystem scanning
|
|
e2ts # and enable multimedia indexing
|
|
ansi # and colors in log messages
|
|
|
|
# disable logging to stdout/journalctl and log to a file instead;
|
|
# $LOGS_DIRECTORY is usually /var/log/copyparty (comes from systemd)
|
|
# and copyparty replaces %Y-%m%d with Year-MonthDay, so the
|
|
# full path will be something like /var/log/copyparty/2023-1130.txt
|
|
# (note: enable compression by adding .xz at the end)
|
|
q, lo: $LOGS_DIRECTORY/%Y-%m%d.log
|
|
|
|
# p: 80,443,3923 # listen on 80/443 as well (requires CAP_NET_BIND_SERVICE)
|
|
# i: 127.0.0.1 # only allow connections from localhost (reverse-proxies)
|
|
|
|
|
|
[accounts]
|
|
ed: wark # username: password
|
|
|
|
|
|
[/] # create a volume at "/" (the webroot), which will
|
|
/mnt # share the contents of the "/mnt" folder
|
|
accs:
|
|
rw: * # everyone gets read-write access, but
|
|
rwmda: ed # the user "ed" gets read-write-move-delete-admin
|