文章详情

短信预约-IT技能 免费直播动态提醒

请输入下面的图形验证码

提交验证

短信预约提醒成功

gitlab配置备忘

2023-08-30 16:17

关注

版本

gitlab 14.6.2

gitlab备份上传到阿里云oss

### Backup Settings###! Docs: https://docs.gitlab.com/omnibus/settings/backups.html# gitlab_rails['manage_backup_path'] = true# gitlab_rails['backup_path'] = "/var/opt/gitlab/backups"###! Docs: https://docs.gitlab.com/ee/raketasks/backup_restore.html#backup-archive-permissions# gitlab_rails['backup_archive_permissions'] = 0644# gitlab_rails['backup_pg_schema'] = 'public'###! The duration in seconds to keep backups before they are allowed to be deleted# gitlab_rails['backup_keep_time'] = 604800gitlab_rails['backup_keep_time'] = 1209600# gitlab_rails['backup_upload_connection'] = {#   'provider' => 'AWS',#   'region' => 'eu-west-1',#   'aws_access_key_id' => 'AKIAKIAKI',#   'aws_secret_access_key' => 'secret123'# }# gitlab_rails['backup_upload_remote_directory'] = 'my.s3.bucket'# gitlab_rails['backup_multipart_chunk_size'] = 104857600gitlab_rails['backup_upload_connection'] = {'provider' => 'aliyun','aliyun_accesskey_id' => 'xxxxx','aliyun_accesskey_secret' => 'xxxxx','aliyun_oss_endpoint' => 'http://oss-cn-shenzhen-internal.aliyuncs.com','aliyun_oss_bucket' => 'xxxxbackup','aliyun_oss_location' => 'shenzhen'}gitlab_rails['backup_upload_remote_directory'] = 'gitlab'###! **Turns on AWS Server-Side Encryption with Amazon S3-Managed Keys for###!   backups**# gitlab_rails['backup_encryption'] = 'AES256'###! The encryption key to use with AWS Server-Side Encryption.###! Setting this value will enable Server-Side Encryption with customer provided keys;###!   otherwise S3-managed keys are used.# gitlab_rails['backup_encryption_key'] = ''###! **Specifies Amazon S3 storage class to use for backups. Valid values###!   include 'STANDARD', 'STANDARD_IA', and 'REDUCED_REDUNDANCY'**# gitlab_rails['backup_storage_class'] = 'STANDARD'###! Skip parts of the backup. Comma separated.###! Docs: https://docs.gitlab.com/ee/raketasks/backup_restore.html#excluding-specific-directories-from-the-backup#gitlab_rails['env'] = {#    "SKIP" => "db,uploads,repositories,builds,artifacts,lfs,registry,pages"#}

gitlab自动备份

[root@gitlab backups]# crontab -l0 2 * * * /usr/bin/gitlab-rake gitlab:backup:create

gitlab集成openladp

gitlab_rails['ldap_enabled'] = truegitlab_rails['prevent_ldap_sign_in'] = falsegitlab_rails['ldap_servers'] = YAML.load <<-'EOS'  main: # 'main' is the GitLab 'provider ID' of this LDAP server    label: 'mxLDAP'           # 显示在登录页面上的名称    host: '172.16.123.223'      # LDAP服务地址    port: 389               # LDAP服务端口,如果LDAP基于SSL在端口通常为636    uid: 'sAMAccountName'   # LDAP中用户名对应的属性,通常为'sAMAccountName'    bind_dn: 'admin@xxx.com'    password: 'xxxxx'     # 同步用户信息的账户密码    encryption: 'plain'     # 'start_tls' or 'simple_tls' or 'plain'    verify_certificates: false  # 如果使用SSL,则设为true    active_directory: false     # 如果是 Active Directory LDAP server 则设为true    allow_username_or_email_login: true  # 是否允许email登录    lowercase_usernames: false            # 是否将用户名转为小写    block_auto_created_users: false       # 是否自动创建用户    base: 'ou=people,dc=xxxxx,dc=com' # 搜索LDAP用户是的BaseDN    user_filter: ''EOS

gitlab重新加载配置

gitlab-ctl reconfigure

来源地址:https://blog.csdn.net/u010674101/article/details/132492417

阅读原文内容投诉

免责声明:

① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。

② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341

软考中级精品资料免费领

  • 历年真题答案解析
  • 备考技巧名师总结
  • 高频考点精准押题
  • 2024年上半年信息系统项目管理师第二批次真题及答案解析(完整版)

    难度     807人已做
    查看
  • 【考后总结】2024年5月26日信息系统项目管理师第2批次考情分析

    难度     351人已做
    查看
  • 【考后总结】2024年5月25日信息系统项目管理师第1批次考情分析

    难度     314人已做
    查看
  • 2024年上半年软考高项第一、二批次真题考点汇总(完整版)

    难度     433人已做
    查看
  • 2024年上半年系统架构设计师考试综合知识真题

    难度     221人已做
    查看

相关文章

发现更多好内容

猜你喜欢

AI推送时光机
位置:首页-资讯-人工智能
咦!没有更多了?去看看其它编程学习网 内容吧
首页课程
资料下载
问答资讯