Added host address to .env

This commit is contained in:
Florian Sylvain
2022-12-22 02:52:50 +01:00
parent 659554c2a9
commit d3c68d6c89
7 changed files with 24 additions and 26 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ var UsersLocation = Location{Database: "gohcms", Collection: "users"}
var AuthMiddleware, _ = jwt.New(&jwt.GinJWTMiddleware{
Realm: "GohCMS",
Key: []byte(os.Getenv("JWT_SECRET")),
Key: []byte(os.Getenv("APP_JWT_SECRET")),
Timeout: time.Hour,
MaxRefresh: time.Hour,
Authenticator: JWTAuthenticator,