Skip to content

Commit

Permalink
fix(infra): modify Caddyfile handle path @ssupecial (#31)
Browse files Browse the repository at this point in the history
* fix(infra): change Caddyfile path by adding * symbol for prometheus

* fix(infra): make Caddy leave all logs to console

* fix(infra): modify Caddyfile handle path
  • Loading branch information
ssupecial authored Feb 26, 2024
1 parent d6de22b commit f630b79
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ grafana.codedang.com {
handle /agent* {
handle /agent/metric* {
uri strip_prefix /agent/metric
reverse_proxy 127.0.0.1:4318/v1/metrics
reverse_proxy 127.0.0.1:4318
}

handle {
Expand All @@ -29,7 +29,6 @@ grafana.codedang.com {
}

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

Expand Down

0 comments on commit f630b79

Please sign in to comment.