]> git.openstreetmap.org Git - chef.git/commitdiff
community: Enable DISCOURSE_PROMETHEUS_TRUSTED_IP_ALLOWLIST_REGEX
authorGrant Slater <github@firefishy.com>
Thu, 6 Apr 2023 23:23:14 +0000 (00:23 +0100)
committerGrant Slater <github@firefishy.com>
Thu, 6 Apr 2023 23:23:14 +0000 (00:23 +0100)
cookbooks/community/templates/default/web_only.yml.erb

index 58d6868e48265262b643a093be3cf5d79dbae7bc..6324baeb97539d78588bf4af7410d72dd60631e1 100644 (file)
@@ -66,6 +66,9 @@ env:
   DISCOURSE_MAXMIND_LICENSE_KEY: '<%= @license_keys[node[:geoipupdate][:account]] %>'
 <% end -%>
 
+  # FIXME: hardcoded IPs should be replaced by chef node search
+  DISCOURSE_PROMETHEUS_TRUSTED_IP_ALLOWLIST_REGEX: '^(140\.211\.167\.99|2605:bc80:3010:700::8cd3:a763)$'
+
   # Increase base SIDEKIQ memory limit to 1GB
   UNICORN_SIDEKIQ_MAX_RSS: 1000