File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -392,6 +392,15 @@ gitlab_postgresql_db_password: 'changeme'
392392
393393**Caution: You have to use your own private and encrypted password here.**
394394
395+ # ### Configure monitoring whitelist for Gitlab rails
396+
397+ Configure the monitoring whitelist for GitLab-Rails :
398+
399+ ` ` ` yaml
400+ gitlab_rails_monitoring_whitelist:
401+ - "{{ gitlab_ip_range }}"
402+ ` ` `
403+
395404# ### Configure GitLab Registry
396405
397406Enable GitLab container registry :
Original file line number Diff line number Diff line change @@ -95,6 +95,9 @@ gitlab_mattermost_only_context: "false"
9595
9696gitlab_feature_flags : []
9797
98+ # List of IP addresses or IP ranges that are allowed to access monitoring endpoints
99+ gitlab_rails_monitoring_whitelist :
100+ - " {{ gitlab_ip_range }}"
98101# Internal variable to determine whether the configuration object for Gitaly
99102# is already present in gitlab_additional_configurations
100103__gitaly_configuration_exists : false
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ gitlab_rails['redis_sentinels'] = [
2828gitlab_rails['redis_sentinels_password'] = "{{ gitlab_redis_sentinel_password }}"
2929{% endif %}
3030{% endif %}
31- gitlab_rails['monitoring_whitelist'] = [" {{ gitlab_ip_range }}" ]
31+ gitlab_rails['monitoring_whitelist'] = [{{ gitlab_rails_monitoring_whitelist | map('to_json') | join(', ') }} ]
3232
3333{% if gitlab_use_internal_gitaly %}
3434{% if not __gitaly_configuration_exists %}
You can’t perform that action at this time.
0 commit comments