refactor: 端口调整
This commit is contained in:
@@ -70,7 +70,7 @@ func (m *Manager) ReloadConfig() error {
|
||||
|
||||
config := &Config{
|
||||
Server: types.ServerConfig{
|
||||
Port: utils.ParseInteger(os.Getenv("PORT"), 3000),
|
||||
Port: utils.ParseInteger(os.Getenv("PORT"), 3001),
|
||||
Host: utils.GetEnvOrDefault("HOST", "0.0.0.0"),
|
||||
ReadTimeout: utils.ParseInteger(os.Getenv("SERVER_READ_TIMEOUT"), 120),
|
||||
WriteTimeout: utils.ParseInteger(os.Getenv("SERVER_WRITE_TIMEOUT"), 1800),
|
||||
|
@@ -130,7 +130,7 @@ func (sm *SystemSettingsManager) EnsureSettingsInitialized() error {
|
||||
}
|
||||
port := os.Getenv("PORT")
|
||||
if port == "" {
|
||||
port = "3000"
|
||||
port = "3001"
|
||||
}
|
||||
value = fmt.Sprintf("http://%s:%s", host, port)
|
||||
}
|
||||
@@ -172,7 +172,7 @@ func (sm *SystemSettingsManager) GetAppUrl() string {
|
||||
}
|
||||
port := os.Getenv("PORT")
|
||||
if port == "" {
|
||||
port = "3000"
|
||||
port = "3001"
|
||||
}
|
||||
return fmt.Sprintf("http://%s:%s", host, port)
|
||||
}
|
||||
|
Reference in New Issue
Block a user