mirror of
https://git.cloudron.io/cloudron/prometheus-server-app.git
synced 2024-11-25 09:50:59 +00:00
46 lines
1.1 KiB
Text
46 lines
1.1 KiB
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>
|
|
|
|
<Location /healthz>
|
|
Order allow,deny
|
|
Allow from all
|
|
Satisfy Any
|
|
|
|
ProxyPreserveHost On
|
|
ProxyErrorOverride Off
|
|
ProxyPass http://127.0.0.1:9090/
|
|
</Location>
|
|
|
|
</VirtualHost>
|