Browse Source

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

Add caddy 1 well-known example
pull/481/head
Slavi Pantaleev 5 years ago
committed by GitHub
parent
commit
20c605554d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      docs/configuring-well-known.md

+ 9
- 1
docs/configuring-well-known.md View File

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


**For Caddy**, 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 { 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: **For HAProxy**, it would be something like this:


```haproxy ```haproxy


Loading…
Cancel
Save