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