Correzione baseaddr x prod (da vedere wasm con hostingenv...)

This commit is contained in:
Samuele Locatelli
2023-09-28 18:48:36 +02:00
parent 1d54f18ede
commit 999274f64c
3 changed files with 26 additions and 1 deletions
@@ -67,6 +67,9 @@
[Parameter]
public EventCallback<string> E_SearchUpd { get; set; }
[Inject]
protected IConfiguration config { get; set; } = null!;
[Parameter]
public int MatrOpr { get; set; } = 102;
@@ -75,10 +78,11 @@
protected override async Task OnInitializedAsync()
{
BaseAddr = config.GetValue<string>("OptConf:BaseAddr");
await ReloadAllData();
}
private string BaseAddr = "https://localhost:7057/MP/TAB2/";
private string BaseAddr = "";
protected async Task ReloadAllData()
{
@@ -0,0 +1,8 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
}
}
+13
View File
@@ -0,0 +1,13 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"OptConf": {
"BaseAddr": "https://iis01.egalware.com/MP/TAB2/",
"BaseUrl": "/MP/TAB2",
"ImgBasePath": "C:\\Steamware\\macchine"
}
}