add avatar endpoint
This commit is contained in:
@@ -9,8 +9,13 @@ type ServerConfig struct {
|
||||
ConnectionString string
|
||||
}
|
||||
|
||||
type MSHosts struct {
|
||||
StorageHost string
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
Server ServerConfig
|
||||
Server ServerConfig
|
||||
MSHosts MSHosts
|
||||
}
|
||||
|
||||
func New() *Config {
|
||||
@@ -19,6 +24,9 @@ func New() *Config {
|
||||
Port: getEnv("PORT", "8080"),
|
||||
ConnectionString: getEnv("CONNECTION_STRING", "host=localhost user=astra_users password=password dbname=astra_users_db port=5432 sslmode=disable TimeZone=Europe/Moscow"),
|
||||
},
|
||||
MSHosts: MSHosts{
|
||||
StorageHost: getEnv("ASTRA-FILE-STORAGE", "http://localhost:8081"),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user