mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-12-07 08:12:32 -05:00
fix --require-auth flag
Apparently with docopt, --require-auth=false doesn't work, so booleans with a default value of true can't be turned off. Toggle the default to false to deal with this, for now. I'd prefer the default be true, but I also would prefer to not use a negative --no-require-auth or --allow-unauthenticated flag. I think I'll switch from docopt to clap in the near future; it seems to be what the cool kids use.
This commit is contained in:
@@ -66,8 +66,7 @@ Options:
|
||||
--http-addr=ADDR Set the bind address for the unencrypted HTTP server.
|
||||
[default: 0.0.0.0:8080]
|
||||
--read-only Forces read-only mode / disables recording.
|
||||
--require-auth=BOOL Requires authentication to access the web interface.
|
||||
[default: true]
|
||||
--require-auth Requires authentication to access the web interface.
|
||||
--trust-forward-hdrs Trust X-Real-IP: and X-Forwarded-Proto: headers on
|
||||
the incoming request. Set this only after ensuring
|
||||
your proxy server is configured to set them and that
|
||||
|
||||
Reference in New Issue
Block a user