diff --git a/docs/traefik.md b/docs/traefik.md new file mode 100644 index 0000000..bbe7ce2 --- /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' +``` + +See https://doc.traefik.io/traefik/ for more information. This should expose +gotify with tls on `gotify.yourdomain.tld` using traefik as a reverse proxy. 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" + ] + } }