setup metrics route for forgejo
This commit is contained in:
parent
5f4d69ff17
commit
7cc84ccc2c
3 changed files with 18 additions and 1 deletions
|
|
@ -123,4 +123,4 @@ ENABLED = true
|
|||
SCHEDULE = @weekly
|
||||
|
||||
[metrics]
|
||||
enabled = true
|
||||
ENABLED = true
|
||||
|
|
|
|||
|
|
@ -2,4 +2,18 @@
|
|||
reverse_proxy localhost:{{ forgejo_http_port }} {
|
||||
header_down +X-Robots-Tag "none"
|
||||
}
|
||||
|
||||
route /metrics {
|
||||
@local {
|
||||
remote_ip 127.0.0.1 ::1
|
||||
}
|
||||
|
||||
handle @local {
|
||||
reverse_proxy localhost:{{ forgejo_http_port }}
|
||||
}
|
||||
|
||||
handle {
|
||||
respond "Not Found" 404
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -110,3 +110,6 @@ JWT_SECRET = {{ gitea_jwt_secret }}
|
|||
[other]
|
||||
SHOW_FOOTER_VERSION = false
|
||||
SHOW_FOOTER_TEMPLATE_LOAD_TIME = false
|
||||
|
||||
[metrics]
|
||||
enabled = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue