Hi Abp Team,
I am having trouble configuring the URL for the Blazor UI for Docker container after publishing. The situation is that after publishing, the container only works with the AppSelfUrl that was used while creating the project image. So, I tried the solution suggested in placing UseStaticFiles() before AbpMapStaticAssets(), but it did not solve the issue. I also tried adding BlazorEnableCompression to Blazor.Client.csproj to disable compression, but it also did not help. I used methods like UseStaticFilesForPatterns("appsettings*.json") and UseStaticFiles() with and without AbpMapStaticAssets().
What I want is to be able to change the configuration of the Blazor project after publishing. The project consists of multiple modules.
29 Answer(s)
-
0
But with change of configuration, does the localhost also should change in browse as entry point. You still using localhost:44336, instead of test.company:44336? Or am I misunderstanding?
-
0
hi
Or am I misunderstanding?
Basically, yes. The URL in appsettings.json is just a configuration and cannot change the URL and port that the running application is bound to.
Thanks.
-
0
Thanks for responding. )))
-
0
: )