fix default session cookie max age,

disable cgo in build
This commit is contained in:
Arthur Lu 2024-07-18 20:22:12 +00:00
parent 8f8f6bd1e8
commit f11e5ccc31
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
build: clean
go build -ldflags="-s -w" -o dist/ .
CGO_ENABLED=0 go build -ldflags="-s -w" -o dist/ .
test: clean
go run .

View File

@ -8,6 +8,6 @@
"path": "/",
"httpOnly": true,
"secure": false,
"maxAge": 7200000
"maxAge": 7200
}
}