summaryrefslogtreecommitdiffstats
path: root/routers/admin
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2015-02-10 21:06:59 -0500
committerUnknwon <joe2010xtmf@163.com>2015-02-10 21:06:59 -0500
commit6a23252edc36a3d99b35af69a310fd31f687f3cb (patch)
tree94b1355117f54a54596dad3f9bb2b56f9e6fec19 /routers/admin
parente407df54f000bf3e078e67f043571293e4edad5d (diff)
downloadgitea-6a23252edc36a3d99b35af69a310fd31f687f3cb.tar.gz
gitea-6a23252edc36a3d99b35af69a310fd31f687f3cb.zip
able to allow insecure certification of webhook for #891
Diffstat (limited to 'routers/admin')
-rw-r--r--routers/admin/admin.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/routers/admin/admin.go b/routers/admin/admin.go
index d54bb629fd..316f1d4257 100644
--- a/routers/admin/admin.go
+++ b/routers/admin/admin.go
@@ -188,11 +188,8 @@ func Config(ctx *middleware.Context) {
ctx.Data["ReverseProxyAuthUser"] = setting.ReverseProxyAuthUser
ctx.Data["Service"] = setting.Service
-
ctx.Data["DbCfg"] = models.DbCfg
-
- ctx.Data["WebhookTaskInterval"] = setting.WebhookTaskInterval
- ctx.Data["WebhookDeliverTimeout"] = setting.WebhookDeliverTimeout
+ ctx.Data["Webhook"] = setting.Webhook
ctx.Data["MailerEnabled"] = false
if setting.MailService != nil {