130
130
The purpose of ** appBaseUrl** is to enable the Angular client to decompose
131
131
the browser address into tenant-name + base-url.
132
132
133
- #### Subdomain Multi-Tenancy:
133
+ #### Subdomain Multi-Tenancy
134
+
134
135
If we want to use the tenancy name as a subdomain for a multi-tenant
135
136
application then we can define ** appBaseUrl** as
136
137
@@ -140,11 +141,11 @@ http://**{TENANCY\_NAME}**.mydomain.com
140
141
must be similarly configured for ** remoteServiceBaseUrl** .
141
142
142
143
It's important to understand that subdomain multi-tenancy is a function
143
- of the ` DomainTenantResolveContributor ` *** server-side*** module .
144
+ of the ` DomainTenantResolveContributor ` server-side class .
144
145
This means that the server API ** must** be accessed via a sub-domain that
145
146
conforms to the format you have defined during your configuration of
146
147
AspNetBoilerplate (see
147
- [ these notes ] ( https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/doc/WebSite/Multi-Tenancy.md#determining-current-tenant ) regarding preinitialization).
148
+ [ Multi-Tenancy ] ( https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/doc/WebSite/Multi-Tenancy.md#determining-current-tenant ) regarding preinitialization).
148
149
149
150
<img src =" images/angular2-core-subdomain-tenant-resolution-sequence.png " alt =" Angular ASP.NET Core Sub-Domain Tenancy Overview " class =" img-thumbnail " width =" 540 " height =" 379 " />
150
151
@@ -154,8 +155,8 @@ infrastructural configurations:
154
155
1 . We should configure DNS to redirect all subdomains to a static IP
155
156
address. To declare 'all subdomains', we can use wildcard like
156
157
** \* .mydomain.com** . Note that if you have a split Angular/API
157
- setup, then you will need 2 subdomain formats, such as:
158
- ** \* .app.mydomain.com** and ** \* .api.mydomain.com**
158
+ setup, then you will need 2 subdomain formats, such as
159
+ ** \* .app.mydomain.com** and ** \* .api.mydomain.com** .
159
160
2 . We should configure IIS to bind this static IP to our application.
160
161
161
162
There may be other ways of doing it but this is the most simple way.
0 commit comments