mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
update example config
This commit is contained in:
1 file changed
+13
-1
+13
-1
@@ -159,7 +159,7 @@ const Caddyfile = `\
|
||||
# 如果你希望使用其他端口或使用域名,修改此处 :80 的值后在 ~/.hydro 目录下使用 caddy reload 重载配置。
|
||||
# 如果你在当前配置下能够通过 http://你的域名/ 正常访问到网站,若需开启 ssl,
|
||||
# 仅需将 :80 改为你的域名(如 hydro.ac)后使用 caddy reload 重载配置即可自动签发 ssl 证书。
|
||||
# 清注意在防火墙/安全组中放行端口,且部分运营商会拦截未经备案的域名。
|
||||
# 请注意在防火墙/安全组中放行端口,且部分运营商会拦截未经备案的域名。
|
||||
# For more information, refer to caddy v2 documentation.
|
||||
:80 {
|
||||
log {
|
||||
@@ -183,6 +183,18 @@ const Caddyfile = `\
|
||||
reverse_proxy http://127.0.0.1:8888
|
||||
}
|
||||
}
|
||||
|
||||
# 如果你需要同时配置其他站点,可参考下方设置:
|
||||
# 请注意:如果多个站点需要共享同一个端口(如 80/443),请确保为每个站点都填写了域名!
|
||||
# 动态站点:
|
||||
# xxx.com {
|
||||
# reverse_proxy http://127.0.0.1:1234
|
||||
# }
|
||||
# 静态站点:
|
||||
# xxx.com {
|
||||
# root * /www/xxx.com
|
||||
# file_server
|
||||
# }
|
||||
`;
|
||||
|
||||
const judgeYaml = `\
|
||||
|
||||
Reference in new issue
Block a user