docs: config include (#1554)

This commit is contained in:
ed 2026-07-12 18:47:15 +00:00
parent 96bafb8f4a
commit daee3e8500
2 changed files with 3 additions and 1 deletions

View file

@ -1337,7 +1337,8 @@ for the above example to work, add the commandline argument `-e2ts` to also scan
# server config # server config
using arguments or config files, or a mix of both: using arguments or config files, or a mix of both:
* config files (`-c some.conf`) can set additional commandline arguments; see [./docs/example.conf](docs/example.conf) and [./docs/example2.conf](docs/example2.conf) * using a config-file (`-c some.conf`) is best, easier to read/maintain; see [./docs/example.conf](docs/example.conf)
* for complex and intricate setups, see how [./docs/example2.conf](docs/example2.conf) includes additional config-files/folders with `% copyparty.d` which loads [./docs/copyparty.d/some.conf](docs/copyparty.d/some.conf)
* `kill -s USR1` (same as `systemctl reload copyparty`) to reload accounts and volumes from config files without restarting * `kill -s USR1` (same as `systemctl reload copyparty`) to reload accounts and volumes from config files without restarting
* or click the `[reload cfg]` button in the control-panel if the user has `a`/admin in any volume * or click the `[reload cfg]` button in the control-panel if the user has `a`/admin in any volume
* changes to the `[global]` config section requires a restart to take effect * changes to the `[global]` config section requires a restart to take effect

View file

@ -1,6 +1,7 @@
# you can include additional config like this # you can include additional config like this
# (the space after the % is important) # (the space after the % is important)
# #
# specify either a single file or a folder with .conf files;
# since copyparty.d is a folder, it'll include all *.conf # since copyparty.d is a folder, it'll include all *.conf
# files inside (not recursively) in alphabetical order # files inside (not recursively) in alphabetical order
# (not necessarily same as numerical/natural order) # (not necessarily same as numerical/natural order)