|
|
@@ -131,12 +131,12 @@ func getRedisUrl() string {
|
|
|
}
|
|
|
|
|
|
func getAllowedOrigins() []string {
|
|
|
- origins, hasOrigins := os.LookupEnv("ALLOWED_ORIGINS")
|
|
|
- if !hasOrigins {
|
|
|
- return []string{"*"}
|
|
|
- }
|
|
|
+ origins, hasOrigins := os.LookupEnv("ALLOWED_ORIGINS")
|
|
|
+ if !hasOrigins {
|
|
|
+ return []string{"*"}
|
|
|
+ }
|
|
|
|
|
|
- return strings.Split(origins, ",")
|
|
|
+ return strings.Split(origins, ",")
|
|
|
}
|
|
|
|
|
|
type config struct {
|
|
|
@@ -146,5 +146,5 @@ type config struct {
|
|
|
Host string
|
|
|
Port int
|
|
|
RedisUrl string
|
|
|
- AllowedOrigins []string
|
|
|
+ AllowedOrigins []string
|
|
|
}
|