From a3b036b2b78fb244a9280431c193f183ae7f292c Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Mon, 6 Oct 2025 18:02:52 +0200 Subject: allow changing caddy host via env var MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- Caddyfile | 1 + serve.mk | 1 + 2 files changed, 2 insertions(+) diff --git a/Caddyfile b/Caddyfile index 9a64dff..b2997b4 100644 --- a/Caddyfile +++ b/Caddyfile @@ -3,6 +3,7 @@ admin off auto_https off http_port {$CADDY_HTTP_PORT:1414} + default_bind {$CADDY_HOST:0.0.0.0} } http:// { diff --git a/serve.mk b/serve.mk index 9ecb486..5817f63 100644 --- a/serve.mk +++ b/serve.mk @@ -1,4 +1,5 @@ CADDY_HTTP_PORT ?= 1414 +CADDY_HOST ?= localhost serve: @ caddy fmt --overwrite -- cgit 1.4.1