bug fix relating to port numbers.
This commit is contained in:
committed by
Violet Ash
parent
8c8652ce67
commit
37fecde0c8
@@ -249,10 +249,10 @@ func serve() {
|
|||||||
r := mux.NewRouter()
|
r := mux.NewRouter()
|
||||||
//for _, webpage := range config.Webpages {
|
//for _, webpage := range config.Webpages {
|
||||||
//}
|
//}
|
||||||
ServePage(r, config.WebpageDir, "/", string(config.WebpagePort))
|
ServePage(r, config.WebpageDir, "/", config.WebpagePort)
|
||||||
ServeApi(r, config.API, endpoint, function, string(config.APIPort))
|
ServeApi(r, config.API, endpoint, function, config.APIPort)
|
||||||
ServeAuthentication(r, string(config.AuthPort))
|
ServeAuthentication(r, config.AuthPort)
|
||||||
addr := "0.0.0.0:" + string(config.RouterPort)
|
addr := "0.0.0.0:" + config.RouterPort
|
||||||
|
|
||||||
srv := &http.Server{
|
srv := &http.Server{
|
||||||
Addr: addr,
|
Addr: addr,
|
||||||
|
|||||||
@@ -70,11 +70,11 @@ type ConfigStructure struct {
|
|||||||
ResponseStream bool `mapstructure:"response_stream"`
|
ResponseStream bool `mapstructure:"response_stream"`
|
||||||
|
|
||||||
Domain string `mapstructure:"domain"`
|
Domain string `mapstructure:"domain"`
|
||||||
RouterPort int `mapstructure:"router_port"`
|
RouterPort string `mapstructure:"router_port"`
|
||||||
API string `mapstructure:"api"`
|
API string `mapstructure:"api"`
|
||||||
APIPort int `mapstructure:"api_port"`
|
APIPort string `mapstructure:"api_port"`
|
||||||
AuthPort int `mapstructure:"auth_port"`
|
AuthPort string `mapstructure:"auth_port"`
|
||||||
//Webpages WebpagesStructure `mapstructure:"webpages"`
|
//Webpages WebpagesStructure `mapstructure:"webpages"`
|
||||||
WebpageDir string `mapstructure:"webpage_dir"`
|
WebpageDir string `mapstructure:"webpage_dir"`
|
||||||
WebpagePort int `mapstructure:"webpage_port"`
|
WebpagePort string `mapstructure:"webpage_port"`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user