summaryrefslogtreecommitdiff
path: root/templates/util
diff options
context:
space:
mode:
Diffstat (limited to 'templates/util')
-rw-r--r--templates/util/traefik_labels.txt.j26
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/util/traefik_labels.txt.j2 b/templates/util/traefik_labels.txt.j2
new file mode 100644
index 0000000..bb6beb1
--- /dev/null
+++ b/templates/util/traefik_labels.txt.j2
@@ -0,0 +1,6 @@
+ - traefik.enable=true
+ - traefik.http.routers.{{router_name}}.rule=Host(`{{host_prefix}}.{{host}}`)
+ - traefik.http.routers.{{router_name}}.tls=true
+ - traefik.http.routers.{{router_name}}.tls.certresolver=letsencrypt
+ - traefik.http.routers.{{router_name}}.entrypoints=websecure
+ - traefik.http.services.{{router_name}}.loadbalancer.server.port={{container_port}}