1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00
This commit is contained in:
Unknown
2014-06-08 04:45:34 -04:00
parent a0318db2f9
commit 302c863cda
14 changed files with 432 additions and 375 deletions

View File

@@ -53,6 +53,10 @@ var (
CookieUserName string
CookieRememberName string
// Webhook settings.
WebhookTaskInterval int
WebhookDeliverTimeout int
// Repository settings.
RepoRootPath string
ScriptType string
@@ -187,9 +191,9 @@ var Service struct {
RequireSignInView bool
EnableCacheAvatar bool
NotifyMail bool
LdapAuth bool
ActiveCodeLives int
ResetPwdCodeLives int
LdapAuth bool
}
func newService() {
@@ -390,6 +394,11 @@ func newNotifyMailService() {
log.Info("Notify Mail Service Enabled")
}
func newWebhookService() {
WebhookTaskInterval = Cfg.MustInt("webhook", "TASK_INTERVAL", 1)
WebhookDeliverTimeout = Cfg.MustInt("webhook", "DELIVER_TIMEOUT", 5)
}
func NewServices() {
newService()
newLogService()
@@ -398,4 +407,5 @@ func NewServices() {
newMailService()
newRegisterMailService()
newNotifyMailService()
newWebhookService()
}