From 5557a4b5f7903a42e053228dafe6c987d35f2908 Mon Sep 17 00:00:00 2001 From: Bretton Date: Fri, 21 Nov 2025 14:39:43 -0800 Subject: [PATCH] fix: modifying caddyfile for automatic websocket handling --- Caddyfile | 6 +++--- docker-compose.prod.yml | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Caddyfile b/Caddyfile index 6d72fe2..9628e2d 100644 --- a/Caddyfile +++ b/Caddyfile @@ -110,13 +110,13 @@ coves.me { health_timeout 5s # Headers for proper client IP handling + header_up Host {host} header_up X-Real-IP {remote_host} header_up X-Forwarded-For {remote_host} header_up X-Forwarded-Proto {scheme} - # WebSocket support for firehose - header_up Connection {>Connection} - header_up Upgrade {>Upgrade} + # Note: Caddy v2 handles WebSocket upgrades automatically + # No need for explicit Connection/Upgrade headers } # Logging (Docker captures stdout/stderr) diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index a6c7c93..150456b 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -127,6 +127,7 @@ services: PDS_PORT: 3000 PDS_DATA_DIRECTORY: /pds PDS_BLOBSTORE_DISK_LOCATION: /pds/blocks + PDS_BLOB_UPLOAD_LIMIT: 104857600 # 100 MB # PLC Directory (production) PDS_DID_PLC_URL: https://plc.directory -- 2.51.2