File tree Expand file tree Collapse file tree
apps/OrchardCore.Elsa.Web Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4747 "RefreshTokenLifetime" : " 1:00:10:00"
4848 }
4949 }
50+ },
51+ "OrchardCore" : {
52+ "Default" : {
53+ "Elsa" : {
54+ "Http" : {
55+ "BasePath" : " /wf" ,
56+ "BaseUrl" : " https://localhost:8096"
57+ }
58+ }
59+ },
60+ "Acme" : {
61+ "Elsa" : {
62+ "Http" : {
63+ "BasePath" : " /wf" ,
64+ "BaseUrl" : " https://localhost:8096/acme"
65+ }
66+ }
67+ }
5068 }
5169}
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ public override void ConfigureServices(IServiceCollection services)
9595
9696 provider . Mappings [ ".pdb" ] = "application/octet-stream" ;
9797 provider . Mappings [ ".wasm" ] = "application/wasm" ;
98- provider . Mappings [ ".dat" ] = "application/octet-stream" ; // you already had this
98+ provider . Mappings [ ".dat" ] = "application/octet-stream" ;
9999
100100 options . ContentTypeProvider = provider ;
101101 } ) ;
Original file line number Diff line number Diff line change 11using Elsa . Extensions ;
22using Microsoft . AspNetCore . Builder ;
33using Microsoft . AspNetCore . Routing ;
4+ using Microsoft . Extensions . Configuration ;
45using Microsoft . Extensions . DependencyInjection ;
6+ using OrchardCore . Environment . Shell . Configuration ;
57using OrchardCore . Modules ;
68
79namespace OrchardCore . Elsa . Features ;
810
911[ Feature ( "OrchardCore.Elsa.Http" ) ]
10- public class HttpStartup : StartupBase
12+ public class HttpStartup ( IShellConfiguration shellConfiguration ) : StartupBase
1113{
1214 public override void ConfigureServices ( IServiceCollection services )
1315 {
@@ -17,8 +19,7 @@ public override void ConfigureServices(IServiceCollection services)
1719 {
1820 http . ConfigureHttpOptions = options =>
1921 {
20- options . BasePath = "/wf" ;
21- options . BaseUrl = new ( "https://localhost:8096" ) ;
22+ shellConfiguration . GetSection ( "Elsa:Http" ) . Bind ( options ) ;
2223 } ;
2324 http . UseCache ( ) ;
2425 } ) ;
Original file line number Diff line number Diff line change 99 "Shell" : {
1010 "DisableAuthorization" : false
1111 }
12- }
12+ }
You can’t perform that action at this time.
0 commit comments