2017-05-04 120 views
-1

我是新成立的Gitlab。GitLab設置發送邀請電子郵件給新成員

我已使用VSHN puppet模塊在AWS中安裝Gitlab。

Gitlab服務器運行正常,但電子郵件邀請不適用於任何人。

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

node 'client-ip-address' { 

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

} 

任何人都可以告訴我需要什麼配置來設置電子郵件通知?

回答

1

根據電子郵件的方式,將這裏的gitlab軌選項配置文件配置: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' => "[email protected]" 
    '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' 
}, 

}

+0

非常感謝。我今天會試試:) –

+0

嗨,彼得, 我已經使用了上面的方法。但我想在Ubuntu上使用sendmail。 我已經安裝了sendmail,它工作正常,但它不適用於GITLAB。 –

相關問題