update: use env file to config server

This commit is contained in:
Kenta420-Poom 2023-09-20 10:39:11 +07:00
parent 59407840cd
commit d8f9858ea0
8 changed files with 541 additions and 12 deletions

8
server/config/config.go Normal file
View file

@ -0,0 +1,8 @@
package config
type ServerConfig struct {
ServerPort uint `mapstructure:"SERVER_PORT"`
AllowedOrigins string `mapstructure:"ALLOWED_ORIGINS"`
ClientRedirectURL string `mapstructure:"CLIENT_REDIRECT_URL"`
ServerDomain string `mapstructure:"SERVER_DOMAIN"`
}