Is there a way for us to host the tenant admin as subdomain on same level as other tenant sites.
example: mydomain.com - where we can host our public facing site contents. MasterAdmin.mydomain.com - where master tenant admin will take place Tenant1.mydomain.com Tenant2.mydomain.com Tenant3.mydomain.com
1 Answer(s)
-
0
Hi @MichaelM,
Yes, you need to implement a custom domain tenant resolver like this one <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/blob/master/src/Abp.AspNetCore/AspNetCore/MultiTenancy/DomainTenantResolveContributor.cs">https://github.com/aspnetboilerplate/as ... ributor.cs</a>. Then, return null for TenantId if tenancyName is "MasterAdmin" or whatever you want to use.
Don't forget to add it to domain resolvers Configuration.MultiTenancy.Resolvers.Insert(0,new YourCustomTenantResolveContributor());