diff options
author | Unknown <joe2010xtmf@163.com> | 2014-05-01 06:55:39 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-05-01 06:55:39 -0400 |
commit | 46af92c57e0d0d71f45d13d0b4bacb91ed2db16b (patch) | |
tree | 9c905631580b8cea4c7660518e975f5735a3a1f2 | |
parent | 00ebb5019f28447650d325719bc48bff1f443fef (diff) | |
download | gitea-46af92c57e0d0d71f45d13d0b4bacb91ed2db16b.tar.gz gitea-46af92c57e0d0d71f45d13d0b4bacb91ed2db16b.zip |
Clean files
-rw-r--r-- | conf/app.ini | 4 | ||||
-rw-r--r-- | routers/dev/template.go | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/conf/app.ini b/conf/app.ini index e7174e2251..6dfd198b2f 100644 --- a/conf/app.ini +++ b/conf/app.ini @@ -15,11 +15,9 @@ LICENSES = Apache v2 License|GPL v2|MIT License|Affero GPL|Artistic License 2.0| [server] PROTOCOL = http DOMAIN = localhost -ROOT_URL = %(PROTOCOL)s://%(DOMAIN)s:%(HTTP_PORT)s/ +ROOT_URL = %(PROTOCOL)s://%(DOMAIN)s:3000/ ; Disable CDN even in "prod" mode OFFLINE_MODE = false -HTTP_ADDR = -HTTP_PORT = 3000 ; Generate steps: ; $ cd path/to/gogs/custom/https ; $ go run $GOROOT/src/pkg/crypto/tls/generate_cert.go -ca=true -duration=8760h0m0s -host=myhost.example.com diff --git a/routers/dev/template.go b/routers/dev/template.go index 63d5d9a5bb..7145bf51fa 100644 --- a/routers/dev/template.go +++ b/routers/dev/template.go @@ -21,5 +21,6 @@ func TemplatePreview(ctx *middleware.Context, params martini.Params) { ctx.Data["Code"] = "2014031910370000009fff6782aadb2162b4a997acb69d4400888e0b9274657374" ctx.Data["ActiveCodeLives"] = base.Service.ActiveCodeLives / 60 ctx.Data["ResetPwdCodeLives"] = base.Service.ResetPwdCodeLives / 60 + ctx.Data["CurDbValue"] = "" ctx.HTML(200, params["_1"]) } |