From 516c43bfb15f49046a396e9a9d70321cc455c80a Mon Sep 17 00:00:00 2001 From: Konstantin <32730812+kkovaletp@users.noreply.github.com> Date: Wed, 1 May 2024 21:45:33 +0300 Subject: [PATCH] Update installation-reverse-proxies.md: Add Traefic info As was mentioned in the comments of https://github.com/photoview/photoview/pull/843, I've updated this page with the info from that PR --- src/en/docs/installation-reverse-proxies.md | 29 ++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/src/en/docs/installation-reverse-proxies.md b/src/en/docs/installation-reverse-proxies.md index 67c84bd..0eed7e3 100644 --- a/src/en/docs/installation-reverse-proxies.md +++ b/src/en/docs/installation-reverse-proxies.md @@ -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