当前位置: 首页 > article >正文

Ubuntu源码安装gitlab13.7集群多前端《二》

Ubuntu源码安装gitlab13.7《一》

gitaly需要调整的服务

  1. redis socket->ip
    bind ....* # 0.0.0.0
    
  2. pg vim /etc/postgresql/14/main/pg_hba.conf
    host    all             all             ..../32         md5
    
  3. gitaly vim /home/git/gitaly/config.toml
    bin_dir = "/home/git/gitaly"
    internal_socket_dir = "/home/git/gitaly/internal_sockets"
    socket_path = "/home/git/gitlab/tmp/sockets/private/gitaly.socket"
    
    listen_addr = '0.0.0.0:8075'
    # Optional: export metrics via Prometheus
    # prometheus_listen_addr = "0.0.0.0:9236"
    #[prometheus]
    #grpc_latency_buckets = [0.001, 0.005, 0.025, 0.1, 0.5, 1.0, 10.0, 30.0, 60.0, 300.0, 1500.0]
    #[logging]
    #level = "warn"
    #[auth]
    #token = '******'
    
    [gitaly-ruby]
    dir = "/home/git/gitaly/ruby"
    [gitlab]
    url = "http://****.com"
    [gitlab-shell]
    dir = "/home/git/gitlab-shell"
    [logging]
    dir = "/home/git/gitlab/log"
    [[storage]]
    name = "default"
    path = "/home/git/repositories"
    

gitlab需要调整的服务

  1. gitlab gitlab.yml database.yml resque.yml
      # Gitaly settings
      gitaly:
        # Path to the directory containing Gitaly client executables.
        client_path: /home/git/gitaly
        # Default Gitaly authentication token. Can be overridden per storage. Can
        # be left blank when Gitaly is running locally on a Unix socket, which
        # is the normal way to deploy Gitaly.
        token: '******' #gitaly 配置的token
      #
      # 4. Advanced settings
      # ==========================
    
      ## Repositories settings
      repositories:
        # Paths where repositories can be stored. Give the canonicalized absolute pathname.
        # IMPORTANT: None of the path components may be symlink, because
        # gitlab-shell invokes Dir.pwd inside the repository path and that results
        # real path not the symlink.
        storages: # You must have at least a `default` storage path.
          default:
            path: /home/git/repositories/
            gitaly_address: tcp://*.*.*.*:8075
            #gitaly_address: unix:/home/git/gitlab/tmp/sockets/private/gitaly.socket # TCP connections are supported too (e.g. tcp://host:port). TLS connections are also supported using the system certificate pool (eg: tls://host:port).
            # gitaly_token: 'special token' # Optional: override global gitaly.token for this storage.
    
    url: redis://*.*.*.*:6379
    #url: unix:/var/run/redis/redis.sock
    
  2. gitlab obs https://gitlab.cn/docs/16.8/charts/installation/migration/minio.html
    uploads:
      enabled: true
      object_store:
      enabled: true
      remote_directory: gitlab-uploads
      proxy_download: true
      connection:
        provider: AWS
        region: <S3 region>
        aws_access_key_id: "<access key>"
        aws_secret_access_key: "<secret access key>"
        host: <Minio host>
        endpoint: <Minio endpoint>
        path_style: true
    
  3. 依赖的服务 gitlab-shell && gitlab-workhorse

http://www.kler.cn/a/417125.html

相关文章:

  • 1-1 Gerrit实用指南
  • Docker 清理镜像策略详解
  • 实时数据开发|Flink如何实现不同数据源输入--DataSource模块
  • 安装Fcitx5输入框架和输入法自动部署脚本(来自Mark24)-Ubuntu通用
  • Hive | Hive 表如何查看所有分区
  • 【ArcGIS Pro】实现一下完美的坐标点标注
  • MATLAB期末复习笔记(二)
  • Zero to JupyterHub with Kubernetes上篇 - Kubernetes 离线二进制部署
  • 【Git系列】利用 Bash 脚本获取 Git 最后一次非合并提交的提交人
  • CSS笔记(四)卡片翻转
  • 【优选算法篇】两队接力跑:双指针协作解题的艺术(下篇)
  • elementUI el-image的使用
  • 深度学习基础2
  • Windchill查找某一个id关联的数据库表
  • #JAVA-常用API-爬虫
  • ACM输入输出模板(下)【Java、C++版】
  • 【论文笔记】Towards Online Continuous Sign Language Recognition and Translation
  • 【JAVA进阶篇教学】第二十篇:如何高效处理List集合数据及明细数据
  • 刷LeetCode hot100--1.哈希表
  • 【系统架构设计师】高分论文:论信息系统的安全与保密设计
  • 智能化图书馆导航系统方案之系统架构与核心功能设计
  • 总结贴:Servlet过滤器、MVC拦截器
  • 安装MySQL 5.7 亲测有效
  • Android开发仿qq详情下拉头像变大
  • 力扣215:数组中第K大的元素
  • 聊聊Flink:这次把Flink的触发器(Trigger)、移除器(Evictor)讲透