From fd08864584e1a7e2c3a1d452eb9b77b96bf1de1d Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Thu, 11 Feb 2021 18:44:07 +0000 Subject: [PATCH] Updated Reverse Proxying (markdown) --- Reverse-Proxying.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Reverse-Proxying.md b/Reverse-Proxying.md index 7005c07..f35e9cc 100644 --- a/Reverse-Proxying.md +++ b/Reverse-Proxying.md @@ -1,6 +1,6 @@ Reverse proxying should be really easy. * If you're proxying to a subdomain, e.g `accounts.jellyf.in/`, a `proxy_pass` or equivalent is enough. -* Proxying to a subfolder is only supported for versions > 0.2.2. Make sure to set the URL base in Settings > General (`ui > url_base` in config.ini). If you're placing it under the same subdomain as Jellyfin, make sure no CSP header is set for jfa-go's subfolder (see example below for NGINX). +* Proxying to a subfolder is only supported for versions > 0.2.2, and requires the proxy to strip the URL base. Make sure to set the URL base in Settings > General (`ui > url_base` in config.ini). If you're placing it under the same subdomain as Jellyfin, make sure no CSP header is set for jfa-go's subfolder (see example below for NGINX). Below are some simple examples of reverse proxy configs. @@ -61,4 +61,17 @@ server { proxy_buffering off; } } +``` + +**Traefik (subfolder on `/jfa` subfolder)** +Taken from #53. +``` + jfa-go: + # rest of your config + labels: + - "traefik.enable=true" + - "traefik.http.routers.jfa-go.rule=Host(`services.${DOMAIN}`) && PathPrefix(`/jfa`)" + - "traefik.http.middlewares.jfa-go-strip.stripprefix.prefixes=/jfa" + - "traefik.http.routers.jfa-go.tls=true" + - "traefik.http.routers.jfa-go.middlewares=jfa-go-strip@docker" ``` \ No newline at end of file