security: add Caddyfile with basicauth config
This commit is contained in:
58
Caddyfile
Normal file
58
Caddyfile
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
{
|
||||||
|
log {
|
||||||
|
output file /tmp/caddy_access.log
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
www.xybkwd.top, xybkwd.top {
|
||||||
|
reverse_proxy localhost:8090
|
||||||
|
}
|
||||||
|
|
||||||
|
gitea.xybkwd.top {
|
||||||
|
basicauth {
|
||||||
|
fxy $2a$14$0U13bqD7CgmZe7jcBQAUHehV2M6qrotbxERgDrHgzLxSXtmRX/YUK
|
||||||
|
}
|
||||||
|
reverse_proxy localhost:3000
|
||||||
|
}
|
||||||
|
|
||||||
|
dashboard.xybkwd.top {
|
||||||
|
basicauth {
|
||||||
|
fxy $2a$14$0U13bqD7CgmZe7jcBQAUHehV2M6qrotbxERgDrHgzLxSXtmRX/YUK
|
||||||
|
}
|
||||||
|
reverse_proxy localhost:9000
|
||||||
|
}
|
||||||
|
|
||||||
|
memo.xybkwd.top {
|
||||||
|
basicauth {
|
||||||
|
fxy $2a$14$0U13bqD7CgmZe7jcBQAUHehV2M6qrotbxERgDrHgzLxSXtmRX/YUK
|
||||||
|
}
|
||||||
|
reverse_proxy localhost:5230
|
||||||
|
}
|
||||||
|
|
||||||
|
nav.xybkwd.top {
|
||||||
|
basicauth {
|
||||||
|
fxy $2a$14$0U13bqD7CgmZe7jcBQAUHehV2M6qrotbxERgDrHgzLxSXtmRX/YUK
|
||||||
|
}
|
||||||
|
@api {
|
||||||
|
path /api/*
|
||||||
|
}
|
||||||
|
handle @api {
|
||||||
|
reverse_proxy localhost:9001
|
||||||
|
}
|
||||||
|
handle {
|
||||||
|
root * /var/www/nav
|
||||||
|
file_server
|
||||||
|
encode gzip
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
vault.xybkwd.top {
|
||||||
|
reverse_proxy localhost:8088
|
||||||
|
}
|
||||||
|
|
||||||
|
books.xybkwd.top {
|
||||||
|
basicauth {
|
||||||
|
fxy $2a$14$0U13bqD7CgmZe7jcBQAUHehV2M6qrotbxERgDrHgzLxSXtmRX/YUK
|
||||||
|
}
|
||||||
|
reverse_proxy localhost:8083
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user