Browse Source

disable mercure heartbeat

Olivier Massot 3 years ago
parent
commit
68f6584714
1 changed files with 3 additions and 2 deletions
  1. 3 2
      docker/mercure/caddy/Caddyfile

+ 3 - 2
docker/mercure/caddy/Caddyfile

@@ -10,7 +10,7 @@ tls internal
 log
 
 route {
-    redir / /.well-known/mercure/ui/
+    redir / /.well-known/mercure/ui/   # remove in prod
     encode zstd gzip
 
     mercure {
@@ -19,8 +19,9 @@ route {
         subscriber_jwt {env.MERCURE_SUBSCRIBER_JWT_KEY} HS256
         cors_origins https://local.ap2i.opentalent.fr http://ap2i https://local.app.opentalent.fr http://app
         publish_origins https://local.ap2i.opentalent.fr http://ap2i https://local.mercure.opentalent.fr
-        demo
+        demo   # remove in prod
         subscriptions
+        heartbeat 0s
     }
 
     respond /healthz 200