This commit is contained in:
femsci 2023-11-18 13:11:24 +01:00
parent 0ea582f464
commit 1ed2b8d731
Signed by: femsci
GPG key ID: 08F7911F0E650C67
3 changed files with 18 additions and 19 deletions

View file

@ -103,7 +103,7 @@
await Task.Yield(); await Task.Yield();
output = string.Empty; output = string.Empty;
using UmoEngine eng = new("/home/nya/Dev/csharp/umogen/umogenkey.secret"); using UmoEngine eng = new();
UmoProcess proc = new(eng); UmoProcess proc = new(eng);
Thread.Yield(); Thread.Yield();
@ -118,8 +118,8 @@
UmoDocumentResult res = new(null, employee, employer, _validity, _payment, UmoDocumentResult res = new(null, employee, employer, _validity, _payment,
anal); anal);
var bytes = await res.ProcessPdf(Path.Combine("/home/nya/Dev/csharp/umogen/", var bytes = await res.ProcessPdf(Path.Combine(Environment.GetEnvironmentVariable("UMO_TEMPLATES")!,
$"templates/{anal.Doctype.TemplateDoc()}")); anal.Doctype.TemplateDoc()));
await js.InvokeVoidAsync("blobby", bytes); await js.InvokeVoidAsync("blobby", bytes);
disB = false; disB = false;

View file

@ -16,14 +16,6 @@
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
} }
},
"https": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"applicationUrl": "https://localhost:7029;http://localhost:5214",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
} }
}, },
"IIS Express": { "IIS Express": {
@ -33,5 +25,4 @@
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
} }
} }
}
} }

View file

@ -5,5 +5,13 @@
"Microsoft.AspNetCore": "Warning" "Microsoft.AspNetCore": "Warning"
} }
}, },
"Kestrel": {
"Endpoints": {
"Http": {
"Url": "http://+:8080"
}
}
},
"AllowedHosts": "*" "AllowedHosts": "*"
} }