Created
April 1, 2021 17:38
-
-
Save treydock/9a8982dfe0e85a32ae3a705621655c5f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:443> | |
ServerName prometheus.DOMAIN | |
<Location "/"> | |
<RequireAny> | |
Require claim groups:oscall | |
</RequireAny> | |
AuthType openid-connect | |
</Location> | |
<LocationMatch "/api/v1/(query|query_range)"> | |
<RequireAny> | |
Require host xdmod.DOMAIN | |
Require host xdmod-test.DOMAIN | |
Require claim groups:oscall | |
</RequireAny> | |
AuthType openid-connect | |
</LocationMatch> | |
## Logging | |
ErrorLog "/var/log/httpd/prometheus_error_ssl.log" | |
ServerSignature Off | |
CustomLog "/var/log/httpd/prometheus_access_ssl.log" combined | |
## Proxy rules | |
ProxyRequests Off | |
ProxyPreserveHost On | |
ProxyPass / http://localhost:9090/ | |
ProxyPassReverse / http://localhost:9090/ | |
## SSL directives | |
SSLEngine on | |
SSLCertificateFile "/etc/pki/tls/certs/prometheus01.DOMAIN.crt" | |
SSLCertificateKeyFile "/etc/pki/tls/private/prometheus01.DOMAIN.key" | |
SSLCertificateChainFile "/etc/pki/tls/certs/prometheus01.DOMAIN-interm.crt" | |
OIDCProviderMetadataURL https://idp.DOMAIN/auth/realms/osc/.well-known/openid-configuration | |
OIDCClientID prometheus.DOMAIN | |
OIDCRedirectURI https://prometheus.DOMAIN/redirect_uri | |
OIDCRemoteUserClaim preferred_username | |
OIDCClientSecret OMIT | |
OIDCCryptoPassphrase OMIT | |
OIDCSessionInactivityTimeout 28800 | |
OIDCStateMaxNumberOfCookies 10 true | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment