Skip to content

Commit

Permalink
Update config.yaml.example and config.go***
Browse files Browse the repository at this point in the history
  • Loading branch information
funnyzak committed Feb 15, 2024
1 parent b37cf8b commit 4b9b041
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
7 changes: 3 additions & 4 deletions config.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ server:

site:
brand: Go-Gin
description: A simple web application using Go and Gin.
description: A simple web application using Go and Gin
base_url: http://localhost:8080

debug: true
Expand All @@ -26,6 +26,5 @@ jwt:
refresh_secret: qhkxjrRmYcVYKSEobqsvhxhtPV3TWquu
access_token_expiration: 60 # minutes
refresh_token_expiration: 720 # minutes

users:
user1: password1
access_token_cookie_name: go-gin-access
refresh_token_cookie_name: go-gin-refresh
1 change: 0 additions & 1 deletion internal/gconfig/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,4 @@ type Config struct {
AccessTokenCookieName string `mapstructure:"access_token_cookie_name"`
RefreshTokenCookieName string `mapstructure:"refresh_token_cookie_name"`
} `mapstructure:"jwt"`
Users map[string]string `mapstructure:"users"`
}

0 comments on commit 4b9b041

Please sign in to comment.