add vc-url/vc-interval and explanations to example .conf files

This commit is contained in:
icxes 2026-02-26 01:06:47 +02:00
parent 3cbb9ef0fd
commit a059bf7faa
No known key found for this signature in database
4 changed files with 21 additions and 3 deletions

View file

@ -18,6 +18,15 @@
# (note: enable compression by adding .xz at the end)
q, lo: $LOGS_DIRECTORY/%Y-%m%d.log
# url to check against for vulnerable versions (default disabled); setting this will enable automatic
# vulnerability checks. the notification, in case you are running a vulnerable version, is shown on the
# admin panel (/?h) and only for users with admin permissions. you can choose between the value given here,
# or alternatively use https://api.copyparty.eu/security-advisories, or your own custom endpoint
vc-url: https://api.github.com/repos/9001/copyparty/security-advisories
# how many seconds to wait between vulnerability checks; default is 86400 (= 1 day).
vc-interval: 86400
# 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)
# ftp: 3921 # enable ftp server on port 3921

View file

@ -1204,7 +1204,7 @@ def add_general(ap, nc, srvname):
ap2.add_argument("--license", action="store_true", help="show licenses and exit")
ap2.add_argument("--version", action="store_true", help="show versions and exit")
ap2.add_argument("--versionb", action="store_true", help="show version and exit")
ap2.add_argument("--vc-url", metavar="URL", type=u, default="", help="URL to check for vulnerable versions (default: None)")
ap2.add_argument("--vc-url", metavar="URL", type=u, default="", help="URL to check for vulnerable versions (default: empty/disabled)")
ap2.add_argument("--vc-interval", metavar="SEC", type=int, default=86400, help="how many seconds to wait between vulnerability checks (default: 86400)")

View file

@ -58,6 +58,15 @@
# show versions and exit
version
# url to check against for vulnerable versions (default disabled); setting this will enable automatic
# vulnerability checks. the notification, in case you are running a vulnerable version, is shown on the
# admin panel (/?h) and only for users with admin permissions. you can choose between the value given here,
# or alternatively use https://api.copyparty.eu/security-advisories, or your own custom endpoint
vc-url: https://api.github.com/repos/9001/copyparty/security-advisories
# how many seconds to wait between vulnerability checks; default is 86400 (= 1 day).
vc-interval: 86400
###000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\
###// qr options \\000000000000000000000000000000000000000000000000000000000000000000000000000\