From 9c5251a9a1fbcf3d467663ebbc8c54714243ab8c Mon Sep 17 00:00:00 2001 From: Robert Jensen Date: Wed, 11 Aug 2021 13:39:47 +0200 Subject: [PATCH] Added Traefik Docker-Compose guide --- Reverse-Proxy.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Reverse-Proxy.md b/Reverse-Proxy.md index 982d95c..dfb100b 100644 --- a/Reverse-Proxy.md +++ b/Reverse-Proxy.md @@ -11,6 +11,7 @@ Uptime Kuma **do not supported on subdirectory** reverse proxy. Please prepare a - [Synology Builtin Reverse Proxy](#synology-builtin-reverse-proxy) - [Cloudflare](#cloudflare) - [SSL/HTTPS](#ssl-https) +- [Traefik] # Nginx @@ -113,4 +114,17 @@ https://github.com/louislam/uptime-kuma/issues/138#issuecomment-890485229 It is recommended to use SSL(HTTPS) with your web-server to avoid MiTM attacks when on a public network. If using caddy these certificates will be auto-generated by caddy and will keep them updated. -If your using Apache or NGINX, it is recommended to use CertBot to manage SSL for free, it uses Let's Encrypt to get it's certificates and keeps them renewed. You can also use your own Certificates and place them as shown above. If using cerbot use the "Without SSL" settings and then run certbot on it and it will automatically configure auto-HTTPS redirection. \ No newline at end of file +If your using Apache or NGINX, it is recommended to use CertBot to manage SSL for free, it uses Let's Encrypt to get it's certificates and keeps them renewed. You can also use your own Certificates and place them as shown above. If using cerbot use the "Without SSL" settings and then run certbot on it and it will automatically configure auto-HTTPS redirection. + + +# Traefik +``` +labels: + - "traefik.enable=true" + - "traefik.http.routers.uptime-kuma.rule=Host(`YourOwnHostname`)" + - "traefik.http.routers.uptime-kuma.entrypoints=https" + - "traefik.http.routers.uptime-kuma.tls=true" + - "traefik.http.routers.uptime-kuma.tls.certresolver=myresolver" + - "traefik.http.services.uptime-kuma.loadBalancer.server.port=3001" +``` +Add the above, to your Docker-compose.yml file, and replace "YourOwnHostname" with the hostname you want to use, to use Traefik reverse Proxy. Note setup correct, Traefik can automaticly, get a Let's Encrypt certificate for your service.