diff options
author | 2023-10-30 15:23:01 +0800 | |
---|---|---|
committer | 2023-10-30 08:23:01 +0100 | |
commit | 9d11c716cc7e33071077462f76e0eaa37f8056cf (patch) | |
tree | 7d8b6cabfc7c4e107a11104dab3d3cc857f7f74d /docs/advanced | |
parent | [bugfix] Extract description as `summary` first, fall back to `name` (#2303) (diff) | |
download | gotosocial-9d11c716cc7e33071077462f76e0eaa37f8056cf.tar.xz |
[docs] added split-domain configuration for Caddy 2 (#2288)
* Update host-account-domain.md
Added split-domain configuration for Caddy 2
Diffstat (limited to 'docs/advanced')
-rw-r--r-- | docs/advanced/host-account-domain.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/advanced/host-account-domain.md b/docs/advanced/host-account-domain.md index 6831a7e19..66c2072a7 100644 --- a/docs/advanced/host-account-domain.md +++ b/docs/advanced/host-account-domain.md @@ -102,3 +102,17 @@ myservice: - 'traefik.http.middlewares.myservice-gts.redirectregex.replacement=https://social.$${1}/.well-known/$${2}' - 'traefik.http.routers.myservice.middlewares=myservice-gts@docker' ``` + +### Caddy 2 + +Ensure that the redirect is configured on the account domain in your `Caddyfile`. The following example assumes the account domain as `example.com`, and host domain as `social.example.com`. + +``` +example.com { + redir /.well-known/host-meta* https://social.example.com{uri} permanent + redir /.well-known/webfinger* https://social.example.com{uri} permanent + redir /.well-known/nodeinfo* https://social.example.com{uri} permanent +} +``` + + |