mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Change default API URL from localhost to 127.0.0.1 (#153)
* Change host from localhost to 127.0.0.1 * change unit tests to also use 127.0.0.1 instead of localhost
This commit is contained in:
committed by
C Cirello
parent
1ff480561a
commit
006c01c97e
2
main.go
2
main.go
@@ -35,7 +35,7 @@ func init() {
|
||||
viper.SetDefault(envMQ, fmt.Sprintf("bolt://%s/data/worker_mq.db", cwd))
|
||||
viper.SetDefault(envDB, fmt.Sprintf("bolt://%s/data/bolt.db?bucket=funcs", cwd))
|
||||
viper.SetDefault(envPort, 8080)
|
||||
viper.SetDefault(envAPIURL, fmt.Sprintf("http://localhost:%d", viper.GetInt(envPort)))
|
||||
viper.SetDefault(envAPIURL, fmt.Sprintf("http://127.0.0.1:%d", viper.GetInt(envPort)))
|
||||
viper.SetDefault(envNumAsync, 1)
|
||||
viper.SetConfigName("config")
|
||||
viper.AddConfigPath(".")
|
||||
|
||||
Reference in New Issue
Block a user