This commit is contained in:
Megghy
2025-09-26 01:58:55 +08:00
parent b2c648c3e6
commit 7abe753401
2 changed files with 3 additions and 2 deletions

View File

@@ -58,7 +58,7 @@ namespace MegghysAPI
public string ListenHost { get; set; } = "*"; public string ListenHost { get; set; } = "*";
public int ListenPort { get; set; } = 4050; public int ListenPort { get; set; } = 4050;
public string DBConnectString { get; set; } = $"Host=localhost;Port=5432;Username=postgres;Password=!Hzy05152484; Database=MegghysAPI;"; 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 MinIOAccessKey { get; set; } = "RBzbElm21lf7sy7wK7wG";
public string MinIOSecretKey { get; set; } = "Nko5azOSUiYgOUeLsj8hLxGz4cKC8XOcH0VS7lWq"; public string MinIOSecretKey { get; set; } = "Nko5azOSUiYgOUeLsj8hLxGz4cKC8XOcH0VS7lWq";
public string MinIORegion { get; set; } = "cn-main"; public string MinIORegion { get; set; } = "cn-main";

View File

@@ -6,6 +6,7 @@ using AntDesign;
var builder = WebApplication.CreateBuilder(args); var builder = WebApplication.CreateBuilder(args);
// Add services to the container. // Add services to the container.
builder.Services.AddRazorComponents() builder.Services.AddRazorComponents()
.AddInteractiveServerComponents(); .AddInteractiveServerComponents();
@@ -80,4 +81,4 @@ foreach (var method in inits)
} }
} }
app.Run(); app.Run($"http://{Config.Instance.ListenHost}:{Config.Instance.ListenPort}");