Gitlab使用md5身份验证通过tcp打包的postgresql数据库访问不起作用

时间:2019-03-19 11:17:44

标签: postgresql gitlab gitlab-ce

我通过引用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吗?”

0 个答案:

没有答案