move sample files because templates ignores them
This commit is contained in:
2
files.sample/conf/Caddyfile
Normal file
2
files.sample/conf/Caddyfile
Normal file
@@ -0,0 +1,2 @@
|
||||
import snippets/*
|
||||
import pages/*
|
||||
4
files.sample/conf/pages/example.com
Normal file
4
files.sample/conf/pages/example.com
Normal file
@@ -0,0 +1,4 @@
|
||||
http://example.com {
|
||||
import auth "*"
|
||||
respond "example.com here!"
|
||||
}
|
||||
12
files.sample/conf/snippets/auth
Normal file
12
files.sample/conf/snippets/auth
Normal file
@@ -0,0 +1,12 @@
|
||||
## generate pass hash (debian):
|
||||
# sudo apt install apache2-utils
|
||||
# htpasswd -bnBC 10 "" password | tr -d ':'
|
||||
|
||||
# user: test
|
||||
# password: password
|
||||
|
||||
(auth) {
|
||||
basicauth {args.0} {
|
||||
test $2y$10$XSrHHXUlQZeRumAc9nl7QevDzKv9H5TXVtb6nxr0Gmrk6VogHWRVK
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user