mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-11-25 03:40:12 +00:00
Updated Reverse Proxying (markdown)
parent
59591f7dd2
commit
fd08864584
@ -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.
|
||||
|
||||
@ -62,3 +62,16 @@ server {
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**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"
|
||||
```
|
Loading…
Reference in New Issue
Block a user