Gitlab modifying Redis, PostgreSQL configuration

Source: Internet
Author: User

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
  1. Modify the Gitlab database configuration/home/git/gitlab/config/database.yml

    production:adapter: postgresqlencoding: unicodedatabase: gitlabhq_productionpool: 10username: 用户名password: 密码host: localhostport: 5432
  2. Modify the RESQUE.YML configuration, primarily to connect the Redis configuration

    development: redis://:密码@localhost:6379/数据库(可选)test: redis://:密码@localhost:6379/数据库(可选)production: redis://:密码@localhost:6379/数据库(可选)
  3. 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
  4. 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.