feat(tenant): 增加租户基础与域名解析
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
email {$CADDY_EMAIL}
|
||||
on_demand_tls {
|
||||
ask http://backend:8080/api/distribution/check-domain
|
||||
ask http://backend:8080/api/site/check-domain
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,8 +47,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
# 前台商城静态资源与安全头配置(主站与所有分销站点共享):
|
||||
# 前端通过 window.location.hostname 自动向 /api/distribution/site-info 请求分销配置。
|
||||
# 前台商城静态资源与安全头配置(经营站点与历史分销站点共享):
|
||||
# 前端先通过 /api/site/context 解析经营租户,历史分销域名继续走 /api/distribution/site-info。
|
||||
(storefront) {
|
||||
encode zstd gzip
|
||||
|
||||
@@ -143,8 +143,8 @@ gitea.hao858.com {
|
||||
reverse_proxy gitea:3000
|
||||
}
|
||||
|
||||
# 分销站点动态域名入口:
|
||||
# 支持任意二级域名及分销商独立域名,首次访问时通过 on_demand_tls 触发后端白名单校验并自动签发 SSL 证书。
|
||||
# 动态域名入口:
|
||||
# 支持经营租户域名、二级域名及历史分销独立域名,首次访问时通过 on_demand_tls 白名单校验后签发 SSL 证书。
|
||||
https:// {
|
||||
tls {
|
||||
on_demand
|
||||
|
||||
Reference in New Issue
Block a user