update: use env file to config server
This commit is contained in:
parent
59407840cd
commit
d8f9858ea0
8 changed files with 541 additions and 12 deletions
8
server/config/config.go
Normal file
8
server/config/config.go
Normal 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"`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue