自定义的GitLab 头像无法正常显示以及URL总是指向localhost

自定义的GitLab 头像无法正常显示以及URL总是指向localhost

解决指向localhost的

编辑gitlab的配置vi /etc/gitlab/gitlab.rb,修改external_url 参数值

[Mesogene@localhost ~]$ sudo vi /etc/gitlab/gitlab.rb## Url on which GitLab will be reachable.## For more details on configuring external_url see:## https://gitlab.com/gitlab-org/omnibus-gitlab/blob/629def0a7a26e7c2326566f0758d4a27857b52a3/README.md#configuring-the-external-url-for-gitlab#external_url 'https://localhost'    #注释掉,将localhost修改为你对应的iP或者域名external_url 'https://10.10.10.152'

头像显示

[Mesogene@localhost ~]$ sudo vi /etc/gitlab/gitlab.rb    #把下面这一行的注释去掉即可gitlab_rails['gravatar_plain_url'] = 'https://www.gravatar.com/avatar/%{hash}?s=%{size}&d=identicon'[Mesogene@localhost ~]$ sudo gitlab-ctl reconfigure[Mesogene@localhost ~]$ sudo gitlab-rake cache:clear RAILS_ENV=production

如图:

udast

更多GitLab相关教程见以下内容

如何在Ubuntu Server 14.04下安装Gitlab中文版 

在 Ubuntu 12.04 上安装 GitLab

GitLab 5.3 升级注意事项

上部署 GitLab (自托管的Git项目仓库)

在RHEL6/CentOS6/ScientificLinux6上安装GitLab 6.0.2

6.5安装GitLab教程及相关解决

升级GitLab到8.2.0 

GitLab 的详细介绍: 

from:https://www.linuxidc.com/Linux/2016-08/133966.htm

声明: 除非转自他站(如有侵权,请联系处理)外,本文采用 BY-NC-SA 协议进行授权 | 智乐兔
转载请注明:转自《自定义的GitLab 头像无法正常显示以及URL总是指向localhost
本文地址:https://www.zhiletu.com/archives-8088.html
关注公众号:智乐兔

赞赏

wechat pay微信赞赏alipay pay支付宝赞赏

上一篇
下一篇

相关文章

在线留言

你必须 登录后 才能留言!

在线客服
在线客服 X

售前: 点击这里给我发消息
售后: 点击这里给我发消息

智乐兔官微