From 7dd780e757d8492005ab6e58114dd20965eace54 Mon Sep 17 00:00:00 2001 From: ssupecial <56429615+ssupecial@users.noreply.github.com> Date: Sun, 25 Feb 2024 19:30:53 +0900 Subject: [PATCH] fix(infra): change Caddyfile for resolving handle path and leaving logs (#28) * fix(infra): change Caddyfile path by adding * symbol for prometheus * fix(infra): make Caddy leave all logs to console --- Caddyfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Caddyfile b/Caddyfile index 6901959..9c3b923 100644 --- a/Caddyfile +++ b/Caddyfile @@ -1,4 +1,8 @@ grafana.codedang.com { + log { + format console + } + handle /lokiaws/* { @blocked not remote_ip {$AWS_REQ_IP} respond @blocked "Forbidden" 403 @@ -24,7 +28,7 @@ grafana.codedang.com { } } - handle /prometheus { + handle /prometheus/* { uri strip_prefix /prometheus reverse_proxy 127.0.0.1:9090 }