summaryrefslogtreecommitdiff
path: root/templates/util
diff options
context:
space:
mode:
authorMark Powers <mark@marks.kitchen>2024-07-20 16:20:13 -0500
committerMark Powers <mark@marks.kitchen>2024-07-20 16:20:13 -0500
commitabe2aeceab858d6ad3a838ffe2970a0e9e2a4606 (patch)
tree83a9da03fbf01cbc0faf87f45b4ddd6e7344faf6 /templates/util
Initial commitmain
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}}