From a2017a0e502f1508d3cef30a25cffa07896b0ca7 Mon Sep 17 00:00:00 2001 From: Jason Raimondi Date: Wed, 13 Oct 2021 22:59:23 -0700 Subject: [PATCH] docs: adds example of reverse proxy with Caddy --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 32b4b33..3141f72 100644 --- a/README.md +++ b/README.md @@ -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. + +### 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 Make sure you have node.js and Python 3.8 installed.