Background: Gravatar Service has not been accessible recently, many services have been suffered, although not affected by the use but very unsightly.
Recently, I was trying to Omnibus the Gitlab, I would like to see if it can be solved, found that the combination of common online duoshuo CDN
way is relatively easy, recorded as follows:
Normal version Gitlab:
Edit gitlab.yml
, find the following section:
# # Gravatargravatar: enabled:true # Use user avatar image from gravatar.com (default:true) # Gravatar URLs: Possible placeholders:%{hash}%{size}%{email} # Plain_url: "/http/..." # default:http://www.gravatar.com/ Avatar/%{hash}?s=%{size}&d=identicon # Ssl_url: "https://..." # default:https:// Secure.gravatar.com/avatar/%{hash}?s=%{size}&d=identicon
plain_url
Remove the comments and write the following:
Plain_url: "Http://gravatar.duoshuo.com/avatar/%{hash}?s=%{size}&d=identicon"
Restart Service
Version Omnibus Gitlab
Edit /etc/gitlab/gitlab.rb
, add the following line:
gitlab_rails[' gravatar_plain_url '] = ' Http://gravatar.duoshuo.com/avatar/%{hash}?s=%{size}&d=identicon '
Executing at the command linesudo gitlab-ctl reconfigure
Resolves an issue where Gitlab's Gravatar avatar cannot be displayed