aboutsummaryrefslogtreecommitdiff
path: root/Docker/README.md
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2023-11-10 08:35:31 +0100
committerGravatar GitHub <noreply@github.com> 2023-11-10 08:35:31 +0100
commite6b0f8c3e39bc2b7565a88e0ba3695abeefc0b4a (patch)
treedc70503cd3b5263518dfbe294f34dfd20ad0ce75 /Docker/README.md
parentd918ab8bc80a31f31ac0e7102096e251d4fd5144 (diff)
Document Traefik PathPrefix (#5845)
Diffstat (limited to 'Docker/README.md')
-rw-r--r--Docker/README.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/Docker/README.md b/Docker/README.md
index ea0d542cd..5afb02a59 100644
--- a/Docker/README.md
+++ b/Docker/README.md
@@ -419,6 +419,26 @@ SERVER_DNS=freshrss.example.net
### Use [Træfik](https://traefik.io/traefik/) reverse proxy
+#### Option 1: server FreshRSS as a sub-domain
+
+Use [`Host()` rule](https://doc.traefik.io/traefik/routing/routers/#rule), like:
+
+```yml
+- traefik.http.routers.freshrss.rule=Host(`freshrss.example.net`)
+```
+
+#### Option 2: serve FreshRSS as a sub-path
+
+Use [`PathPrefix()` rules](https://doc.traefik.io/traefik/routing/routers/#rule) and [`StripPrefix` middleware](https://doc.traefik.io/traefik/middlewares/http/stripprefix/#stripprefix), like:
+
+```yml
+- traefik.http.middlewares.freshrssM3.stripprefix.prefixes=/freshrss
+- traefik.http.routers.freshrss.middlewares=freshrssM3
+- traefik.http.routers.freshrss.rule=PathPrefix(`/freshrss`)
+```
+
+#### Full example
+
Here is the recommended configuration using automatic [Let’s Encrypt](https://letsencrypt.org/) HTTPS certificates and with a redirection from HTTP to HTTPS.
See [`docker-compose-proxy.yml`](./freshrss/docker-compose-proxy.yml)