Skip to content
Snippets Groups Projects
Verified Commit 58cdb25e authored by Sven-Hendrik Haase's avatar Sven-Hendrik Haase
Browse files

aurweb: Do not guard metrics endpoints in aur-dev

The sandbox deployments do not have access to the vault and so we can't have them use
it.
parent c8223cb3
No related branches found
No related tags found
1 merge request!916aurweb: Skip commit validation if we are not on prod
Pipeline #119350 passed
......@@ -129,9 +129,11 @@ server {
}
location = /rpc/metrics {
{% if aurweb_environment_type == 'prod' %}
if ($http_authorization != "Bearer {{ vault_goaurrpc_metrics_token }}") {
return 403;
}
{% endif %}
proxy_pass http://127.0.0.1:10666/metrics;
proxy_set_header X-Forwarded-For $remote_addr;
......@@ -151,9 +153,11 @@ server {
}
location = /metrics {
{% if aurweb_environment_type == 'prod' %}
if ($http_authorization != "Bearer {{ vault_aurweb_metrics_token }}") {
return 403;
}
{% endif %}
{{ self.asgi_proxy() }}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment