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:
Konrad Wojas 2018-03-24 20:13:13 +08:00 committed by Zlatko Čalušić
parent 02196a18d8
commit 4d2493388a
4 changed files with 72 additions and 13 deletions

1
mux.go
View file

@ -21,6 +21,7 @@ var Config = struct {
TLSKey string
TLSCert string
TLS bool
NoAuth bool
AppendOnly bool
PrivateRepos bool
Prometheus bool