summaryrefslogtreecommitdiff
path: root/caddyconfig
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2019-10-10 14:37:27 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2019-10-10 14:37:27 -0600
commitf8366c2f09c77a55dc53038cae0b101263488867 (patch)
tree359105a5265369a6510342291715d6fe556c5250 /caddyconfig
parentfe36d26b63b6398592e46604d1795f84ce0477d4 (diff)
http: authentication module; hash-password cmd; http_basic provider
This implements HTTP basicauth into Caddy 2. The basic auth module will not work with passwords that are not securely hashed, so a subcommand hash-password was added to make it convenient to produce those hashes. Also included is Caddyfile support. Closes #2747.
Diffstat (limited to 'caddyconfig')
-rw-r--r--caddyconfig/httpcaddyfile/directives.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/caddyconfig/httpcaddyfile/directives.go b/caddyconfig/httpcaddyfile/directives.go
index 0d7e0e4..f1ce0f1 100644
--- a/caddyconfig/httpcaddyfile/directives.go
+++ b/caddyconfig/httpcaddyfile/directives.go
@@ -28,6 +28,7 @@ import (
var defaultDirectiveOrder = []string{
"rewrite",
"try_files",
+ "basicauth",
"headers",
"request_header",
"encode",