Hi,
I have deployed my back-end to Azure and want to use multitenancy. However, it seems then even when using the Tenancy subdomain the Host is being used, and only the Host login works.
I setup the appsetting.production.json
"App": { "ServerRootAddress": "http://{TENANCY_NAME}.myapi.nl", "ClientRootAddress": "https://{TENANCY_NAME}.myapp.nl", "CorsOrigins": "https://{TENANCY_NAME}.myapp.nl" }
And the appconfig.production.json
"remoteServiceBaseUrl": "http://{TENANCY_NAME}.myapi.nl", "appBaseUrl": "https://{TENANCY_NAME}.myapp.nl",
When using; http://myapi.nl/AbpUserConfiguration/GetAll?d=xxxxxxxxxxxxxx
i get the same result as when i use; http://mytenant.myapi.nl/AbpUserConfiguration/GetAll?d=xxxxxxxxxxxxxx
Dont know if that should be the case.
My Azure settings are as follows;
Please assist.
Regards.
6 Answer(s)
-
0
-
0
-
0
-
0
-
0
Hi,
Thank you.
I changed the settings in appsettings.json and it worked. Any pointers why Azure is not pickup up the appsettings.Production.json?
Regards,
Ian
-
0
Any pointers why Azure is not pickup up the appsettings.Production.json?
hi
Maybe you can refer to azure's documentation.
Asp net core documentation: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/environments?view=aspnetcore-3.1