Make Elsa server URL configurable in ASPNET Core sample dashboard project
This commit is contained in:
parent
a4c53f64e9
commit
43b2bef1a5
|
|
@ -1,7 +1,8 @@
|
|||
@page "/"
|
||||
@inject IConfiguration Configuration;
|
||||
@{
|
||||
ViewData["Title"] = "Home page";
|
||||
var serverUrl = "/";
|
||||
var serverUrl = Configuration["Elsa:Server:BaseAddress"];
|
||||
}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
@using Microsoft.Extensions.Configuration
|
||||
@namespace ElsaDashboard.Samples.AspNetCore.Monolith.Pages
|
||||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
|
|
@ -3,8 +3,7 @@
|
|||
"windowsAuthentication": false,
|
||||
"anonymousAuthentication": true,
|
||||
"iisExpress": {
|
||||
"applicationUrl": "http://localhost:15265",
|
||||
"sslPort": 44321
|
||||
"applicationUrl": "https://localhost:15265"
|
||||
}
|
||||
},
|
||||
"profiles": {
|
||||
|
|
@ -19,7 +18,7 @@
|
|||
"commandName": "Project",
|
||||
"dotnetRunMessages": "true",
|
||||
"launchBrowser": true,
|
||||
"applicationUrl": "https://localhost:5001;http://localhost:5000",
|
||||
"applicationUrl": "https://localhost:15265",
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,5 +6,10 @@
|
|||
"Microsoft.Hosting.Lifetime": "Information"
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*"
|
||||
"AllowedHosts": "*",
|
||||
"Elsa": {
|
||||
"Server": {
|
||||
"BaseAddress": "https://localhost:15265"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue