简体   繁体   English

设置gitlab基本身份验证htpasswd

[英]Setting up gitlab basic auth htpasswd

I am trying to have nginx authentication to a gitlab server. 我正在尝试对gitlab服务器进行nginx身份验证。 I have made the changes outlined here . 我进行了此处概述的更改。

But I am not sure where to actually generate the htpasswd at. 但是我不确定在哪里实际生成htpasswd。

I've tried these locations; 我已经尝试过这些位置;

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

Where do I need to put the file? 我需要在哪里存放文件? are there any extra configuration steps within gitlab that I cannot find? 我无法在gitlab中找到其他配置步骤吗?

Thank you 谢谢

Solved it. 解决了。 gitlab is looking in the /var/opt/gitlab/nginx/conf/ directory for htpasswd gitlab在/ var / opt / gitlab / nginx / conf /目录中查找htpasswd

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM