From 0cd45062a81187c94bca0d8be69ea294b574a3e1 Mon Sep 17 00:00:00 2001 From: Kang-Eunsu Date: Sun, 25 Feb 2024 19:07:25 +0900 Subject: [PATCH 1/2] fix(infra): change Caddyfile path by adding * symbol for prometheus --- Caddyfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Caddyfile b/Caddyfile index 6901959..3f59170 100644 --- a/Caddyfile +++ b/Caddyfile @@ -24,7 +24,7 @@ grafana.codedang.com { } } - handle /prometheus { + handle /prometheus/* { uri strip_prefix /prometheus reverse_proxy 127.0.0.1:9090 } From 6297b1eda89c0fcfdb3f4b7a99b7dc49291a0046 Mon Sep 17 00:00:00 2001 From: Kang-Eunsu Date: Sun, 25 Feb 2024 19:10:42 +0900 Subject: [PATCH 2/2] fix(infra): make Caddy leave all logs to console --- Caddyfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Caddyfile b/Caddyfile index 3f59170..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