瀏覽代碼

Merge pull request #480 from andresterba/caddy1-reverse-proxy

Add caddy 1 well-known example
pull/481/head
Slavi Pantaleev 6 年之前
committed by GitHub
父節點
當前提交
20c605554d
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 9 次插入1 次删除
  1. +9
    -1
      docs/configuring-well-known.md

+ 9
- 1
docs/configuring-well-known.md 查看文件

@@ -104,7 +104,7 @@ server {
</VirtualHost>
```

**For Caddy**, it would be something like this:
**For Caddy 2**, it would be something like this:

```caddy
reverse_proxy /.well-known/matrix/* https://matrix.DOMAIN {
@@ -112,6 +112,14 @@ reverse_proxy /.well-known/matrix/* https://matrix.DOMAIN {
}
```

**For Caddy 1**, it would be something like this:

```caddy
proxy /.well-known/matrix/ https://matrix.DOMAIN {
header_upstream Host {http.reverse_proxy.upstream.hostport}
}
```

**For HAProxy**, it would be something like this:

```haproxy


Loading…
取消
儲存