【问题标题】:How to use GitLab and Gitlab-Mattermost on one machine?如何在一台机器上使用 GitLab 和 Gitlab-Mattermost?
【发布时间】:2016-05-29 06:27:22
【问题描述】:

我的配置文件:

external_url "http://192.168.3.23"  # note the use of a dotted ip

gitlab_rails['gitlab_email_enabled'] = true
gitlab_rails['gitlab_email_from'] = 'gitlab@myhome.com'
gitlab_rails['gitlab_email_display_name'] = 'gitlab'
#gitlab_rails['gitlab_email_reply_to'] = 'gitlab@myhome.com'

gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "mail.home"
gitlab_rails['smtp_port'] = 25
gitlab_rails['smtp_domain'] = "myhome.com"

mattermost_external_url 'http://192.168.3.23'
mattermost['gitlab_enable'] = true
mattermost['gitlab_secret'] = "4d1e<***>bdbfe"
mattermost['gitlab_id'] = "1c441<***>092df"
mattermost['gitlab_scope'] = ""
mattermost['gitlab_auth_endpoint'] = "http://192.168.3.23/oauth/authorize"
mattermost['gitlab_token_endpoint'] = "http://192.168.3.23/oauth/token"
mattermost['gitlab_user_api_endpoint'] = "http://192.168.3.23/api/v3/user"


# Shut down GitLab services on the Mattermost server
#gitlab_rails['enable'] = false

但是现在通过地址192.168.3.23 只加载gitlab。 GitLab Community Edition 8.4.4 9c31cc6! 如何开始使用gitlab和mattermost?

【问题讨论】:

    标签: gitlab gitlab-omnibus mattermost


    【解决方案1】:

    GitLab 和 Mattermost 需要使用不同的 url-address。

    extermanl_url "http://192.168.3.23"
    ...
    mattermost_external_url "http://192.168.3.23:8065"
    

    解决here

    【讨论】:

    • 在 gitlab 应用程序上创建 mattermost['gitlab_secret'] 时是否使用了“192.168.3.23:8065”或仅使用了“192.168.3.23”URL?
    • 我使用带有端口号的 URL 创建了gitlab_secret。运行gitlab-ctl 服务后,它显示最重要的服务正在运行,但它没有分配我提到的端口(8090 - 没有在端口 8090 上运行)并且最重要的 URL 也无法访问。我在这里做错了什么?
    • 我想知道我的愚蠢行为。对gitlab.rb 进行更改后,我忘记运行“gitlab-ctl reconfigure”。
    • 似乎使用端口 8065 不是一个好主意,因为它与 nginx 默认端口冲突(请参阅this)。使用任何其他端口。
    猜你喜欢
    • 2016-04-01
    • 2018-11-05
    • 2021-12-30
    • 1970-01-01
    • 2017-12-30
    • 2019-08-20
    • 1970-01-01
    • 2015-05-20
    • 2019-09-27
    相关资源
    最近更新 更多