Resolves an issue where Gitlab's Gravatar avatar cannot be displayed

Source: Internet
Author: User

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_urlRemove 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.