Gitlab 开启 GOOGLE-AUTHENTICATOR 两步验证. 一. 服务器 root 开启 GOOGLE-AUTHENTICATOR 两步验证. 1https://www.versca.cn/?p=1170 ================================================== 二. web页面管理员root,开启 GOOGLE-AUTHENTICATOR 两步验证 12https://www.cnblogs.com/wangxu01/articles/11057507.html http://t.zoukankan.com/hujinzhong-p-12199712.html 2-1、代码对于一个互联网或者技术型公司有多重要我就不多说了,安全问题有多重要我也不想说,启用MFA/2FA多因子认证,成为诸多软件趋势。说白了就是多一个随机验证码验证 登陆,显得黑科技一点。 2-2、扫码之后获取随机码 出现如下页面就说明已经成功了 2-3、注销再次登陆,除了用户密码外还需要随机码 2-4、令牌-这个很重要 开始双因子认证之后,git clone等等 就会验证你的令牌了。这个时候你要创建令牌,密码就是你的令牌 三、web页面管理员root ,禁用 两步验证 3-1、思路分析 进入postgresql数据库,修改user表,将otp_required_for_login 、 require_two_factor_authentication_from_group 这两个字段,都改为false(数据库中用f表示) 3-2、操作步骤 1cat /var/opt/gitlab/gitlab-rails/etc/database.yml 会弹出如下: 123456789101112131415161718192021222324252627production: main: adapter: postgresql encoding: unicode collation: […]
Category Archives: Gitlab
一. admin@example.com 修改为 info@bndstone.com 1-1. root登陆后台 , administrator > root 1-2. 邮箱改为 info@bndstone.com 1-3. update profile settings 1-4. info@bndstone.com 收到 确认邮件 1-5. 再登陆,就发现 邮箱已经完全改成 info@bndstone.com 了 ================================================================= 二. gitlab取消用户注册时需要管理员认证功能 1https://docs.gitlab.com/ee/user/admin_area/settings/sign_up_restrictions.html#require-administrator-approval-for-new-sign-ups 步骤: 2-1.后台 root 登陆, administrator > root 2-2. View user in admin area 2-3. Settings > General 2-4. Sign-up restrictions > Expand 2-5. Require admin […]
1https://www.cnblogs.com/xunweidezui/p/17229306.html 1. 下载Gitlab的rpm包至本地 可去选择合适的版本https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/ 1wget https://linuxsoft.versca.cn/mirrors/gitlab-ce-12.3.9-ce.0.el7.x86_64.rpm 或 https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-12.3.9-ce.0.el7.x86_64.rpm 2. 使用yum安装gitlab,会帮我们解决依赖包 1yum localinstall gitlab-ce-12.3.9-ce.0.el7.x86_64.rpm -y 3. 配置Gitlab域名 或 Zerotier IP 2-1. 如果配置 Zerotier IP, 一定要加 “=” 1vi /etc/gitlab/gitlab.rb 1external_url= ‘http:192.168.196.113’ 4. 关闭gitlab不需要的组件 12345678910node_exporter[‘enable’] = false redis_exporter[‘enable’] = false alertmanager[‘enable’] = false prometheus[‘enable’] = false prometheus[‘monitor_kubernetes’] = false postgres_exporter[‘enable’] = false pgbouncer_exporter[‘enable’] […]
git clone速度太慢的解决办法 1https://www.jianshu.com/p/d437a5674625 例如我要从如下仓库克隆非常慢 1git clone https://github.com/novnc/noVNC.git 解决办法: 1. 申请一个国内的git,比如码云,coding等,比如我使用的是码云 2. 在码云上新建一个仓库,注意选择导入已有仓库,就是git项目的地址 https://gitee.com/ancky2006/CentOS.git 换成下面地址就超级快了 1git clone https://gitee.com/ancky2006/noVNC.git ===================现在把项目导入gitlab===================== 从Gitee导入,因为从github导会发现无法导入[可能是域名被墙]. 然后从gitlab下载发现超级快. 12git clone https://gitee.com/ancky2006/noVNC.git git clone https://gitlab.versca.cn/root/noVNC.git