mirror of
https://git.cloudron.io/cloudron/prometheus-server-app.git
synced 2024-11-22 08:21:02 +00:00
36 lines
941 B
Text
36 lines
941 B
Text
<VirtualHost *:8000>
|
|
DocumentRoot /usr/local/bin/prometheus
|
|
|
|
ErrorLog "/dev/stderr"
|
|
CustomLog "/dev/stdout" combined
|
|
|
|
<Location />
|
|
AllowOverride None
|
|
Order deny,allow
|
|
Deny from All
|
|
|
|
AuthType Basic
|
|
AuthBasicProvider ldap
|
|
AuthName "Use your Cloudron Account to login"
|
|
AuthLDAPURL ${CLOUDRON_LDAP_URL}/${CLOUDRON_LDAP_USERS_BASE_DN}?username?sub?(objectclass=user)
|
|
AuthLDAPBindDN "${CLOUDRON_LDAP_BIND_DN}"
|
|
AuthLDAPBindPassword "{CLOUDRON_LDAP_BIND_PASSWORD}"
|
|
Require valid-user
|
|
Satisfy any
|
|
|
|
ProxyPreserveHost On
|
|
ProxyErrorOverride Off
|
|
ProxyPass http://127.0.0.1:9090/
|
|
</Location>
|
|
|
|
<Location /healthcheck>
|
|
Order allow,deny
|
|
Allow from all
|
|
Satisfy Any
|
|
|
|
ErrorDocument 200 "ok"
|
|
RewriteEngine On
|
|
RewriteRule "/healthcheck" - [R=200]
|
|
</Location>
|
|
|
|
</VirtualHost>
|