Skip to content

Commit

Permalink
Update installation-reverse-proxies.md: Add Traefic info
Browse files Browse the repository at this point in the history
As was mentioned in the comments of photoview/photoview#843, I've updated this page with the info from that PR
  • Loading branch information
kkovaletp committed May 1, 2024
1 parent eb44ec7 commit 516c43b
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion src/en/docs/installation-reverse-proxies.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,34 @@ group: Installation
translationKey: installation-reverse-proxies
---

> TODO: Reverse proxy with [Traefik](https://doc.traefik.io/traefik/providers/docker/) + Docker
## Using Traefic with Docker

Please read the Traefic documentation, as it provides more detailed and accurate info: [doc.traefik.io](https://doc.traefik.io/traefik/providers/docker/)

Here is an example of the configuration for the docker-compose file of Photoview:

Assumptions made in this config:
- Traefic runs in host network mode,
- Public hostname is photoview.foo.bar
- Certificate resolver is named "le"
- HTTPS entrypoint is named "websecure"

If you enable these labels, remove the ports section

```YML
photoview:
...
labels:
- "traefik.enable=true"
- "traefik.http.routers.photoview.rule=Host(`photoview.foo.bar`)"
- "traefik.http.routers.photoview.service=photoview"
- "traefik.http.routers.photoview.tls=true"
- "traefik.http.routers.photoview.tls.certresolver=le"
- "traefik.http.routers.photoview.entrypoints=websecure"
- "traefik.http.services.photoview.loadbalancer.server.port=80"
- "traefik.http.services.photoview.loadbalancer.server.scheme=http"
...
```

## Using Caddy

Expand Down

0 comments on commit 516c43b

Please sign in to comment.