mirror of
https://github.com/9001/copyparty.git
synced 2026-02-26 21:43:08 -07:00
add vc-url/vc-interval and explanations to example .conf files
This commit is contained in:
parent
3cbb9ef0fd
commit
a059bf7faa
|
|
@ -18,6 +18,15 @@
|
||||||
# (note: enable compression by adding .xz at the end)
|
# (note: enable compression by adding .xz at the end)
|
||||||
q, lo: $LOGS_DIRECTORY/%Y-%m%d.log
|
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)
|
# 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)
|
# i: 127.0.0.1 # only allow connections from localhost (reverse-proxies)
|
||||||
# ftp: 3921 # enable ftp server on port 3921
|
# ftp: 3921 # enable ftp server on port 3921
|
||||||
|
|
|
||||||
|
|
@ -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("--license", action="store_true", help="show licenses and exit")
|
||||||
ap2.add_argument("--version", action="store_true", help="show versions 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("--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)")
|
ap2.add_argument("--vc-interval", metavar="SEC", type=int, default=86400, help="how many seconds to wait between vulnerability checks (default: 86400)")
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -58,6 +58,15 @@
|
||||||
# show versions and exit
|
# show versions and exit
|
||||||
version
|
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\
|
###000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\
|
||||||
###// qr options \\000000000000000000000000000000000000000000000000000000000000000000000000000\
|
###// qr options \\000000000000000000000000000000000000000000000000000000000000000000000000000\
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue