自建gitlab服务器,证书过期问题

在仓库的处理方式

# 禁用 SSL 验证(不推荐长期使用)
git config http.sslVerify false
# 或者只对特定仓库禁用
cd /path/to/your/repo
git config http.sslVerify false

# 执行完操作后,重新启用
git config http.sslVerify true

在gitlab-runner的处理方式

[[runners]]
  name = "your-runner"
  url = "https://gitlib.dayuzhongxue.com"
  token = "your-token"
  tls-skip-verify = true  # 添加这行

gitlab服务器的处理

nginx不做强制跳转80至443

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注