mirror of
https://github.com/restic/rest-server.git
synced 2025-10-19 07:33:21 +00:00
Require auth by default, add --no-auth flag
In order to prevent users from accidentally exposing rest-server without authentication, rest-server now defaults to requiring a .htpasswd. If you want to disable authentication, you need to explicitly pass the new --no-auth flag.
This commit is contained in:
parent
02196a18d8
commit
4d2493388a
4 changed files with 72 additions and 13 deletions
1
mux.go
1
mux.go
|
@ -21,6 +21,7 @@ var Config = struct {
|
|||
TLSKey string
|
||||
TLSCert string
|
||||
TLS bool
|
||||
NoAuth bool
|
||||
AppendOnly bool
|
||||
PrivateRepos bool
|
||||
Prometheus bool
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue