【问题标题】:Setting up gitlab basic auth htpasswd设置 gitlab 基本身份验证 htpasswd
【发布时间】:2016-06-22 18:37:50
【问题描述】:

我正在尝试对 gitlab 服务器进行 nginx 身份验证。 我已经进行了here 概述的更改。

但我不确定在哪里实际生成 htpasswd。

我已经尝试过这些位置;

/nginx/.htpasswd
/var/log/gitlab/nginx/.htpasswd

我需要把文件放在哪里? gitlab中是否有我找不到的额外配置步骤?

谢谢

【问题讨论】:

  • 我在/etc/gitlab/gitlab.rb 中对其进行了编辑,为其提供了 htpasswd 文件的位置,但是当我生成密码并输入我的凭据时,它仍然是 403。

标签: nginx gitlab .htpasswd


【解决方案1】:

解决了。 gitlab 正在 /var/opt/gitlab/nginx/conf/ 目录中查找 htpasswd

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-10-12
    • 1970-01-01
    • 2011-11-12
    • 2015-10-01
    • 1970-01-01
    • 2013-04-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多