暗黑模式
basci_auth
WARNING
Prior to v2.8.0, this directive was named basicauth, but was renamed for consistency with other directives.
Caddyfile
blog.iflyit.top {
handle_path /--components/* {
root * /home/ronnie/data/blog/components
file_server
}
handle {
root * /home/ronnie/data/blog/latest
try_files {path} {path}/ {path}.html /404.html
file_server
}
basicauth /work/springtech/* {
username hashpassword
}
}
# waline
https://waline.blog.iflyit.top {
reverse_proxy :8360
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
DANGER
Vitepress: after page loaded, then page will be turned into SPA mode, which will not trigger basic_auth