From f11e5ccc3155e664e21b6fd96ea64dc2d6194131 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Thu, 18 Jul 2024 20:22:12 +0000 Subject: [PATCH] fix default session cookie max age, disable cgo in build --- Makefile | 2 +- configs/template.config.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ec7cbb6..494cef7 100644 --- a/Makefile +++ b/Makefile @@ -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 . diff --git a/configs/template.config.json b/configs/template.config.json index 52968a3..d0f3c5c 100644 --- a/configs/template.config.json +++ b/configs/template.config.json @@ -8,6 +8,6 @@ "path": "/", "httpOnly": true, "secure": false, - "maxAge": 7200000 + "maxAge": 7200 } } \ No newline at end of file