aboutsummaryrefslogtreecommitdiff
path: root/internal/cmd/web.go
diff options
context:
space:
mode:
authorᴜɴᴋɴᴡᴏɴ <u@gogs.io>2020-02-22 20:46:16 +0800
committerᴜɴᴋɴᴡᴏɴ <u@gogs.io>2020-02-22 20:46:16 +0800
commit286fbc07e985d960209e8443a57e7f95efe60efd (patch)
treedd3d0d38081fa258751004472695c8fdc6885e43 /internal/cmd/web.go
parenta7e53b8134eefcbaa60a2755da8518dd08471a69 (diff)
conf: overhaul security settings
Diffstat (limited to 'internal/cmd/web.go')
-rw-r--r--internal/cmd/web.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/cmd/web.go b/internal/cmd/web.go
index 306a4439..30501bde 100644
--- a/internal/cmd/web.go
+++ b/internal/cmd/web.go
@@ -143,7 +143,7 @@ func newMacaron() *macaron.Macaron {
}))
m.Use(session.Sessioner(conf.SessionConfig))
m.Use(csrf.Csrfer(csrf.Options{
- Secret: conf.SecretKey,
+ Secret: conf.Security.SecretKey,
Cookie: conf.CSRFCookieName,
SetCookie: true,
Header: "X-Csrf-Token",