c873635f6f
- Introduced multiple SVG flag assets to the project, enhancing the visual representation of country flags. - Updated the configuration file to include a new path for the flags assets, ensuring proper access and organization. - Modified the main application to accommodate the new flags path, improving the overall asset management in the application.
33 lines
1.0 KiB
Go
33 lines
1.0 KiB
Go
package bootstrap
|
|
|
|
import (
|
|
"tm/pkg/config"
|
|
)
|
|
|
|
// Config holds configuration for the web command
|
|
type Config struct {
|
|
Server config.ServerConfig `mapstructure:"server"`
|
|
Database config.DatabaseConfig `mapstructure:"database"`
|
|
Cache config.CacheConfig `mapstructure:"cache"`
|
|
Logging config.LoggingConfig `mapstructure:"logging"`
|
|
RateLimit config.RateLimitConfig `mapstructure:"rate_limiting"`
|
|
UserAuth AuthConfig `mapstructure:"user_authorization"`
|
|
CustomerAuth AuthConfig `mapstructure:"customer_authorization"`
|
|
Assets AssetsConfig `mapstructure:"assets"`
|
|
}
|
|
|
|
type AuthConfig struct {
|
|
JWT JWTConfig `mapstructure:"jwt"`
|
|
}
|
|
|
|
type JWTConfig struct {
|
|
AccessSecret string `mapstructure:"access_secret"`
|
|
RefreshSecret string `mapstructure:"refresh_secret"`
|
|
AccessExpiresIn int `mapstructure:"access_expires_in"`
|
|
RefreshExpiresIn int `mapstructure:"refresh_expires_in"`
|
|
}
|
|
|
|
type AssetsConfig struct {
|
|
FlagsPath string `mapstructure:"flags_path"`
|
|
}
|