Skip to content

Commit

Permalink
docs(traefik): add subfolder configuration example (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
s0up4200 authored Dec 6, 2024
1 parent 433f744 commit 6fc262a
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs/installation/reverse-proxy/traefik.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ sidebar_label: Traefik
pagination_prev: introduction
pagination_next: configuration/indexers
---

Traefik setup to run on subdomain.

- Needs an `.env` file with `DOMAIN` set, like `DOMAIN=something.local`
Expand All @@ -16,6 +17,8 @@ Traefik setup to run on subdomain.

Your config may be different so change accordingly.

### Subdomain

```yaml title="docker-compose.yml"
version: "3.7"

Expand Down Expand Up @@ -50,3 +53,22 @@ services:
- "traefik.http.routers.autobrr-http.service=autobrr"
- "traefik.http.services.autobrr.loadbalancer.server.port=7474"
```
### Subfolder
```yaml
labels:
- "traefik.enable=true"
- "traefik.docker.network=proxy"

- "traefik.http.middlewares.autobrr-strip.stripprefix.prefixes=/autobrr"
- "traefik.http.middlewares.autobrr-strip.stripprefix.forceSlash=true"

- "traefik.http.routers.autobrr-baseurl.rule=Host(`full.domain.com`) && PathPrefix(`/autobrr`)"
- "traefik.http.routers.autobrr-baseurl.middlewares=autobrr-strip"
- "traefik.http.routers.autobrr-baseurl.entrypoints=https"
- "traefik.http.routers.autobrr-baseurl.tls=true"
- "traefik.http.routers.autobrr-baseurl.tls.certresolver=letsencrypt"
- "traefik.http.routers.autobrr-baseurl.service=autobrr-baseurl"
- "traefik.http.services.autobrr-baseurl.loadbalancer.server.port=7474"
```

0 comments on commit 6fc262a

Please sign in to comment.