我通过引用md5_auth_cidr_addresses尝试将md5_auth_cidr_addresses
应用于给定IP
postgresql['listen_address'] = '0.0.0.0'
postgresql['port'] = 5432
postgresql['md5_auth_cidr_addresses'] = %w(172.3.22.212)
postgresql['trust_auth_cidr_addresses'] = %w(127.0.0.1/24)
postgresql['sql_user'] = "gitlab"
postgresql['sql_user_password'] = Digest::MD5.hexdigest "securesqlpassword" << postgresql['sql_user']
和gitlab-rails为
gitlab_rails['db_host'] = '127.0.0.1'
gitlab_rails['db_port'] = 5432
gitlab_rails['db_username'] = "gitlab"
gitlab_rails['db_password'] = "securesqlpassword"
但是当使用gitlab-ctl reconfigure
重新配置gitlab时,它将中断postgresql访问“无法在端口5432上连接postgresql吗?”