Due to the need to change the Redis authentication mode to allow remote connection, and made the Requirepass settings, the PostgreSQL authentication mode has been changed to allow remote connection and need to pass the password.
caused by the problem
提交的动态无法写入,表现在gitlab上就是提交的动态无法在首页显示,postgresql中也没有提交记录
Solutions
Modify the Gitlab database configuration/home/git/gitlab/config/database.yml
production:adapter: postgresqlencoding: unicodedatabase: gitlabhq_productionpool: 10username: 用户名password: 密码host: localhostport: 5432
Modify the RESQUE.YML configuration, primarily to connect the Redis configuration
development: redis://:密码@localhost:6379/数据库(可选)test: redis://:密码@localhost:6379/数据库(可选)production: redis://:密码@localhost:6379/数据库(可选)
Modify Redis configuration in Gitlab-shell, connect Redis configuration/home/git/gitlab-shell/config.yml
redis:bin: /usr/bin/redis-clihost: localhostport: 6379password: 密码db: 数据库namespace: resque:gitlab
Modify Gitlab program/HOME/GIT/GITLAB-SHELL/LIB/GITLAB_CONFIG.RB 58 lines
//加上密码和数据库参数%W(#{redis[‘bin‘]} -h #{redis[‘host‘]} -p #{redis[‘port‘]} -a #{redis[‘password‘]} -n #{redis[‘db‘]})
Gitlab modifying Redis, PostgreSQL configuration