ソースを参照

clarifying reverse proxying of well-known files

pull/1806/head
Arkonos 3年前
コミット
04aa609ae5
1個のファイルの変更16行の追加2行の削除
  1. +16
    -2
      docs/configuring-well-known.md

+ 16
- 2
docs/configuring-well-known.md ファイルの表示

@@ -116,8 +116,22 @@ server {
**For Caddy 2**, it would be something like this: **For Caddy 2**, it would be something like this:


```caddy ```caddy
reverse_proxy /.well-known/matrix/* https://matrix.DOMAIN {
header_up Host {http.reverse_proxy.upstream.hostport}
DOMAIN.com {
@wellknown {
path /.well-known/matrix/*:x
}

handle @wellknown {
reverse_proxy https://matrix.DOMAIN.com {
header_up Host {http.reverse_proxy.upstream.hostport}
}
}
# Configration for the base domain goes here
# handle {
# header -Server
# encode zstd gzip
# reverse_proxy localhost:4020
# }
} }
``` ```




読み込み中…
キャンセル
保存