add optional update-checker (#1315)

can check if the current version has a known vulnerability, with the option to panic and exit if so, and otherwise show a warning in the controlpanel for admins

---------

Co-authored-by: ed <s@ocv.me>
This commit is contained in:
exci
2026-03-07 23:54:49 +02:00
committed by GitHub
parent 31b23843f2
commit c6965f0614
8 changed files with 134 additions and 7 deletions

View File

@@ -57,6 +57,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\