gitlab本地搭建后用户(默认)头像不显示问题
###
1、头像不现实图示
![](https://img2020.cnblogs.com/blog/1274745/202107/1274745-20210721160238803-679362534.png)
2、编辑gitlab的配置文件/etc/gitlab/gitlab.rb
在/etc/gitlab/gitlab.rb中找到如下两行关于Gravatar的配置
如果我们不开启https的话,用http就可以了,配置文件增加如下所示的plain_url ~~~ 修改为:
gitlab_rails['gravatar_plain_url'] = 'http://cdn.libravatar.org/avatar/%{hash}?s=%{size}&d=identicon'
#gitlab_rails['gravatar_plain_url'] = 'https://seccdn.libravatar.org/avatar/%{hash}?s=%{size}&d=identicon'
官方https://docs.gitlab.com/ee/administration/libravatar.html为我们提供了两种解决方案,一种是http一种是https:
![](https://img2020.cnblogs.com/blog/1274745/202107/1274745-20210721160716560-2103317067.png)
3、停止gitlab服务
gitlab-ctl stop
![](https://img2020.cnblogs.com/blog/1274745/202107/1274745-20210721161047408-1328197566.png)
4、重新加载配置文件 启动gitlab服务
gitlab-ctl reconfigure
![](https://img2020.cnblogs.com/blog/1274745/202107/1274745-20210721161148661-1858411184.png)
5、配置加载正常后重新启动服务
gitlab-ctl start
![](https://img2020.cnblogs.com/blog/1274745/202107/1274745-20210721161240886-2093929937.png)
6、配置加载正常后重新启动服务
gitlab-ctl restart
![](https://img2020.cnblogs.com/blog/1274745/202107/1274745-20210721164940119-1402207378.png)
7、查看gitlab启动状态
gitlab-ctl start ps aux|grep gitlab
![](https://img2020.cnblogs.com/blog/1274745/202107/1274745-20210721165306064-320349140.png)
8、查看页面默认logo显示情况(显示正常)
###