EOX GitLab Instance
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
prometheus role
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ansible-public
prometheus role
Commits
b93d631f
Commit
b93d631f
authored
2 years ago
by
Karl Grube
Browse files
Options
Downloads
Patches
Plain Diff
added admin ability to access prometheus directly
parent
f2c91ffb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/prometheus_site.j2
+14
-3
14 additions, 3 deletions
templates/prometheus_site.j2
with
14 additions
and
3 deletions
templates/prometheus_site.j2
+
14
−
3
View file @
b93d631f
...
...
@@ -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;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment