X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/22014524ab710947798fed63c81cafad02bcfb45..644f12460af63db5fa70baa490def90dd7374ad7:/cookbooks/prometheus/templates/default/apache.erb diff --git a/cookbooks/prometheus/templates/default/apache.erb b/cookbooks/prometheus/templates/default/apache.erb index b4c7c55ac..af0053140 100644 --- a/cookbooks/prometheus/templates/default/apache.erb +++ b/cookbooks/prometheus/templates/default/apache.erb @@ -5,7 +5,7 @@ ServerAlias prometheus.osm.org ServerAdmin webmaster@openstreetmap.org - CustomLog /var/log/apache2/prometheus.openstreetmap.org-access.log combined + CustomLog /var/log/apache2/prometheus.openstreetmap.org-access.log combined_extended ErrorLog /var/log/apache2/prometheus.openstreetmap.org-error.log RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/ @@ -16,13 +16,33 @@ ServerName prometheus.openstreetmap.org ServerAdmin webmaster@openstreetmap.org - CustomLog /var/log/apache2/prometheus.openstreetmap.org-access.log combined + CustomLog /var/log/apache2/prometheus.openstreetmap.org-access.log combined_extended ErrorLog /var/log/apache2/prometheus.openstreetmap.org-error.log SSLEngine on SSLCertificateFile /etc/ssl/certs/prometheus.openstreetmap.org.pem SSLCertificateKeyFile /etc/ssl/private/prometheus.openstreetmap.org.key + ProxyPass /prometheus http://localhost:9090/prometheus + ProxyPass /alertmanager http://localhost:9093/alertmanager + ProxyPass /karma http://localhost:8081/karma + ProxyPass /api/live/ws ws://localhost:3000/api/live/ws ProxyPass / http://localhost:3000/ ProxyPreserveHost on + + + Require all denied + + + +<% @admin_hosts.each do |host| -%> + Require ip <%= host %> +<% end -%> + + + +<% @admin_hosts.each do |host| -%> + Require ip <%= host %> +<% end -%> +