add avatar endpoint

This commit is contained in:
kandrusyak
2023-07-28 00:58:54 +03:00
parent 4d01d35eae
commit 4c61eb82a0
5 changed files with 152 additions and 1 deletions

View File

@@ -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"),
},
}
}