Bläddra i källkod

Update Caddy reverse-proxy instructions (#11655)

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
tags/v1.13.0-rc1
TLZ 4 år sedan
förälder
incheckning
2d1ade3415
Inget konto är kopplat till bidragsgivarens mejladress
1 ändrade filer med 21 tillägg och 2 borttagningar
  1. 21
    2
      docs/content/doc/usage/reverse-proxies.en-us.md

+ 21
- 2
docs/content/doc/usage/reverse-proxies.en-us.md Visa fil



``` ```
git.example.com { git.example.com {
proxy / http://localhost:3000
reverse_proxy localhost:3000
}
```

If you still use Caddy v1, use:

```
git.example.com {
proxy / localhost:3000
} }
``` ```




``` ```
git.example.com { git.example.com {
proxy /git/ http://localhost:3000 # Note: Trailing Slash after /git/
route /git/* {
uri strip_prefix /git
reverse_proxy localhost:3000
}
}
```

Or, for Caddy v1:

```
git.example.com {
proxy /git/ localhost:3000
} }
``` ```



Laddar…
Avbryt
Spara