EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit b93d631f authored by Karl Grube's avatar Karl Grube
Browse files

added admin ability to access prometheus directly

parent f2c91ffb
No related branches found
No related tags found
No related merge requests found
......@@ -4,11 +4,22 @@ server {
server_name {{fqdn}};
location / {
if ($ssl_client_s_dn != "CN={{grafana_cn}}" ){
return 403;
set $deny_access 1;
{% if admin_cns is defined %}
{% for admin_cn in admin_cns %}
if ($ssl_client_s_dn = "CN={{admin_cn}}" ){
set $deny_access 0;
}
{% endfor %}
{% endif %}
if ($ssl_client_s_dn = "CN={{grafana_cn}}" ){
set $deny_access 0;
}
if ($ssl_client_verify != "SUCCESS"){
return 403;
set $deny_access 1;
}
if ($deny_access != 0){
return 403;
}
proxy_pass http://[::1]:9090;
}
......
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