From 8cd0ec6759e01749c192e68721c2de7483761244 Mon Sep 17 00:00:00 2001 From: Taken Date: Fri, 22 Nov 2024 18:15:13 +0100 Subject: [PATCH] feat: traefik (#90) --- docs/traefik.md | 34 ++++++++++++++++++++++++++++++++++ website/sidebars.json | 14 ++++++++++++-- 2 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 docs/traefik.md diff --git a/docs/traefik.md b/docs/traefik.md new file mode 100644 index 0000000..d810d80 --- /dev/null +++ b/docs/traefik.md @@ -0,0 +1,34 @@ +--- +id: traefik +title: Traefik reverse proxy +--- + +```yaml +services: + traefik: + image: 'traefik:v3.2' + container_name: 'traefik' + command: + - '--providers.docker=true' + - '--providers.docker.exposedbydefault=false' + - '--entryPoints.websecure.address=:443' + - '--certificatesresolvers.letsencrypt.acme.tlschallenge=true' + - '--certificatesresolvers.letsencrypt.acme.email=' + - '--certificatesresolvers.letsencrypt.acme.storage=/letsencrypt/acme.json' + ports: + - '443:443' + volumes: + - './letsencrypt:/letsencrypt' + - '/var/run/docker.sock:/var/run/docker.sock:ro' + + gotify: + image: gotify/server: + labels: + 'traefik.enable': 'true' + 'traefik.http.routers.gotify.rule': 'Host(`gotify.yourdomain.tld`)' + 'traefik.http.routers.gotify.entrypoints': 'websecure' + 'traefik.http.routers.gotify.tls.certresolver': 'letsencrypt' +``` + +This should expose gotify with tls on `gotify.yourdomain.tld` using traefik as +a reverse proxy. See https://doc.traefik.io/traefik/ for more information. diff --git a/website/sidebars.json b/website/sidebars.json index c3e323f..273703f 100644 --- a/website/sidebars.json +++ b/website/sidebars.json @@ -2,7 +2,17 @@ "docs": { "Getting Started": ["index", "install", "config", "first-login", "pushmsg", "msgextras"], "REST-API": ["swagger-docs"], - "Plugins": ["plugin","plugin-write", "plugin-deploy"], + "Plugins": ["plugin", "plugin-write", "plugin-deploy"], "Development": ["dev-setup", "dev-server-and-tests", "build"], - "Miscellaneous": ["nginx", "apache", "caddy", "haproxy", "more-pushmsg", "optimize-images", "systemd"]} + "Miscellaneous": [ + "apache", + "caddy", + "haproxy", + "more-pushmsg", + "nginx", + "optimize-images", + "systemd", + "traefik" + ] + } }