From 37305f889ce003ab45131d58cceef0eafc455a20 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Th=C3=A9o=20-=20Le=20Filament?= <theo@le-filament.com>
Date: Wed, 19 Jun 2024 12:27:11 +0200
Subject: [PATCH] feat: update configuration for Traefik v3 and enable HTTP/3

---
 templates/inverseproxy.yaml.j2 | 10 ++++++----
 templates/traefik.toml.j2      |  2 ++
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/templates/inverseproxy.yaml.j2 b/templates/inverseproxy.yaml.j2
index 1de8f0f..2ff16b1 100644
--- a/templates/inverseproxy.yaml.j2
+++ b/templates/inverseproxy.yaml.j2
@@ -43,10 +43,12 @@ services:
             - logs:/var/log/traefik/:rw
             - ./traefik.toml:/etc/traefik/traefik.toml:ro
         ports:
-            - "0.0.0.0:80:80"
-            - "0.0.0.0:443:443"
-            - "[::]:80:80"
-            - "[::]:443:443"
+            - "0.0.0.0:80:80/tcp"
+            - "0.0.0.0:443:443/tcp"
+            - "0.0.0.0:443:443/udp"
+            - "[::]:80:80/tcp"
+            - "[::]:443:443/tcp"
+            - "[::]:443:443/udp"
         depends_on:
             - dockersocket
         restart: unless-stopped
diff --git a/templates/traefik.toml.j2 b/templates/traefik.toml.j2
index 23ba401..c1e564a 100644
--- a/templates/traefik.toml.j2
+++ b/templates/traefik.toml.j2
@@ -14,6 +14,8 @@
       [entryPoints.websecure.http.tls]
         options = "default"
         certResolver = "le"
+    [entryPoints.websecure.http3]
+      advertisedPort = 443
 
 [providers]
   [providers.docker]
-- 
GitLab