Add custom app name per instance
This commit is contained in:
@@ -14,6 +14,10 @@ var apiBaseUrl = builder.Configuration["ApiSettings:BaseUrl"]
|
||||
?? throw new InvalidOperationException("ApiSettings:BaseUrl is not configured");
|
||||
builder.Services.AddSharedServices(apiBaseUrl);
|
||||
|
||||
// Configure App settings
|
||||
var appConfig = builder.Configuration.GetSection("App").Get<AppConfig>() ?? new AppConfig();
|
||||
builder.Services.AddSingleton(appConfig);
|
||||
|
||||
builder.Services.AddScoped<IGoogleAuthService, WebGoogleAuthService>();
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
@@ -12,5 +12,8 @@
|
||||
"Url": "http://0.0.0.0:7143"
|
||||
}
|
||||
}
|
||||
},
|
||||
"App": {
|
||||
"AppName": "DiunaBI"
|
||||
}
|
||||
}
|
||||
@@ -6,5 +6,8 @@
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*"
|
||||
"AllowedHosts": "*",
|
||||
"App": {
|
||||
"AppName": "DiunaBI"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user