diff --git a/Config.cs b/Config.cs index d6895eb..8273ce2 100644 --- a/Config.cs +++ b/Config.cs @@ -58,7 +58,7 @@ namespace MegghysAPI public string ListenHost { get; set; } = "*"; public int ListenPort { get; set; } = 4050; public string DBConnectString { get; set; } = $"Host=localhost;Port=5432;Username=postgres;Password=!Hzy05152484; Database=MegghysAPI;"; - public string MinIOEndpoint { get; set; } = "eternalland.top:9000"; + public string MinIOEndpoint { get; set; } = "ddns.megghy.site:9000"; public string MinIOAccessKey { get; set; } = "RBzbElm21lf7sy7wK7wG"; public string MinIOSecretKey { get; set; } = "Nko5azOSUiYgOUeLsj8hLxGz4cKC8XOcH0VS7lWq"; public string MinIORegion { get; set; } = "cn-main"; diff --git a/Program.cs b/Program.cs index e0db13c..e4aa295 100644 --- a/Program.cs +++ b/Program.cs @@ -6,6 +6,7 @@ using AntDesign; var builder = WebApplication.CreateBuilder(args); + // Add services to the container. builder.Services.AddRazorComponents() .AddInteractiveServerComponents(); @@ -80,4 +81,4 @@ foreach (var method in inits) } } -app.Run(); +app.Run($"http://{Config.Instance.ListenHost}:{Config.Instance.ListenPort}");