###
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
4、重新加载配置文件 启动gitlab服务
gitlab-ctl reconfigure
5、配置加载正常后重新启动服务
gitlab-ctl start
6、配置加载正常后重新启动服务
gitlab-ctl restart
7、查看gitlab启动状态
gitlab-ctl start ps aux|grep gitlab
![](https://img2020.cnblogs.com/blog/1274745/202107/1274745-20210721165306064-320349140.png)
8、查看页面默认logo显示情况(显示正常)
###