Skip to content

Commit

Permalink
Added traefik docs
Browse files Browse the repository at this point in the history
  • Loading branch information
TakenMC authored and jmattheis committed Nov 22, 2024
1 parent cb31ff2 commit 734de41
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 2 deletions.
34 changes: 34 additions & 0 deletions docs/traefik.md
Original file line number Diff line number Diff line change
@@ -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=<INSERT_YOUR_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:<CURRENT_VERSION>
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.
14 changes: 12 additions & 2 deletions website/sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
}

0 comments on commit 734de41

Please sign in to comment.