update...

This commit is contained in:
kenneth 2023-12-05 06:24:03 +00:00
parent 3ab59de5f9
commit 26ee393549
2 changed files with 5 additions and 2 deletions

View File

@ -12,6 +12,9 @@ createdb:
dropdb:
docker exec -it postgres dropdb mediahls
psql:
docker exec -it postgres psql -U root -d mediahls
migrateinit:
migrate create -ext sql -dir internal/db/schema -seq init_schema
@ -30,4 +33,4 @@ test:
server:
go run main.go
.PHONY: network postgres createdb dropdb migrateup migratedown sqlc test server
.PHONY: network postgres createdb dropdb psql migrateup migratedown sqlc test server

View File

@ -45,7 +45,7 @@ func NewServer(templateFS fs.FS, staticFS fs.FS, imgFS fs.FS, conf *config.Confi
hashKey := securecookie.GenerateRandomKey(32)
blockKey := securecookie.GenerateRandomKey(32)
secureCookie := securecookie.New(hashKey, blockKey)
secureCookie.MaxAge(7200)
// secureCookie.MaxAge(7200)
server := &Server{
templateFS: templateFS,