Skip to content

Commit

Permalink
fix(infra): change Caddyfile for resolving handle path and leaving lo…
Browse files Browse the repository at this point in the history
…gs (#28)

* fix(infra): change Caddyfile path by adding * symbol for prometheus

* fix(infra): make Caddy leave all logs to console
  • Loading branch information
ssupecial authored Feb 25, 2024
1 parent 5a6e6dc commit 7dd780e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Caddyfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
grafana.codedang.com {
log {
format console
}

handle /lokiaws/* {
@blocked not remote_ip {$AWS_REQ_IP}
respond @blocked "Forbidden" 403
Expand All @@ -24,7 +28,7 @@ grafana.codedang.com {
}
}

handle /prometheus {
handle /prometheus/* {
uri strip_prefix /prometheus
reverse_proxy 127.0.0.1:9090
}
Expand Down

0 comments on commit 7dd780e

Please sign in to comment.