【问题标题】:GitLab set up to send invite Email to new membersGitLab 设置为向新成员发送邀请电子邮件
【发布时间】:2017-05-04 12:49:06
【问题描述】:

我是设置 Gitlab 的新手。

我已使用VSHN puppet 模块在 AWS 中安装 Gitlab。

Gitlab 服务器运行良好,但电子邮件邀请对任何人都不起作用。

我在site.pp文件中使用了如下配置。

node 'client-ip-address' {

  class { 'gitlab':
    external_url => 'http://client-ip-address',
  }

}

谁能告诉我设置电子邮件通知需要什么配置?

【问题讨论】:

    标签: puppet devops gitlab-omnibus


    【解决方案1】:

    根据您的电子邮件方式,它将使用此处记录的 gitlab rails 选项配置进行配置:https://github.com/vshn/puppet-gitlab/blob/master/README.md#usage

    有关各种电子邮件提供商示例的文档:https://docs.gitlab.com/omnibus/settings/smtp.html#example-configuration

    比如最基本的一个:

    class { 'gitlab':
      external_url => 'http://gitlab.mydomain.tld',
      gitlab_rails => {
        'smtp_enable' => true,
      },
    }
    

    对于 gmail:

    class { 'gitlab':
       external_url => 'http://gitlab.mydomain.tld',
       gitlab_rails => {
        'smtp_address' => "smtp.gmail.com"
        'smtp_port' => 587
        'smtp_user_name' => "my.email@gmail.com"
        'smtp_password' => "my-gmail-password"
        'smtp_domain' => "smtp.gmail.com"
        'smtp_authentication' => "login"
        'smtp_enable_starttls_auto' => true
        'smtp_tls' => false
        'smtp_openssl_verify_mode' => 'peer'
    },
    

    }

    【讨论】:

    • 非常感谢。我今天会试试这个:)
    • 嗨彼得,我已经使用了上述方法。但我想在 Ubuntu 上使用 sendmail。我已经安装了 sendmail,它工作正常,但它不适用于 GITLAB。
    猜你喜欢
    • 1970-01-01
    • 2015-12-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-02-18
    • 2015-02-26
    相关资源
    最近更新 更多