docs: adds example of reverse proxy with Caddy

This commit is contained in:
Jason Raimondi 2021-10-13 22:59:23 -07:00
parent a3d4a16e43
commit a2017a0e50
1 changed files with 14 additions and 0 deletions

View File

@ -91,6 +91,20 @@ location /metube/ {
If you're using the [linuxserver/swag](https://docs.linuxserver.io/general/swag) image for your reverse proxying needs (which I can heartily recommend), it already includes ready snippets for proxying MeTube both in [subfolder](https://github.com/linuxserver/reverse-proxy-confs/blob/master/metube.subfolder.conf.sample) and [subdomain](https://github.com/linuxserver/reverse-proxy-confs/blob/master/metube.subdomain.conf.sample) modes under the `nginx/proxy-confs` directory in the configuration volume. If you're using the [linuxserver/swag](https://docs.linuxserver.io/general/swag) image for your reverse proxying needs (which I can heartily recommend), it already includes ready snippets for proxying MeTube both in [subfolder](https://github.com/linuxserver/reverse-proxy-confs/blob/master/metube.subfolder.conf.sample) and [subdomain](https://github.com/linuxserver/reverse-proxy-confs/blob/master/metube.subdomain.conf.sample) modes under the `nginx/proxy-confs` directory in the configuration volume.
### Reverse proxy using Caddy
The following example Caddyfile gets a reverse proxy going behind [caddy](https://caddyserver.com)
```caddyfile
example.com {
route /metube/* {
uri strip_prefix metube
reverse_proxy metube:8081
}
}
```
## Build and run locally ## Build and run locally
Make sure you have node.js and Python 3.8 installed. Make sure you have node.js and Python 3.8 installed.