Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions mta-multi-tenant.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ modules:
keep-existing-routes: true
properties:
TENANT_HOST_PATTERN: ^(.*)-${default-uri} # testing only, use custom domain with wildcard for production
CHECK_X_FORWARDED_HOST_IN_LOGIN_CALLBACK: true
requires:
- name: srv-api
group: destinations
Expand All @@ -90,7 +91,7 @@ modules:
- name: app-api
properties:
app-url: '${default-url}'
app-domain: '${domain}'
app-uri: '${default-uri}'
# --------------------- RESOURCES ---------------------
resources:
# -----------------------------------------------------
Expand All @@ -104,7 +105,7 @@ resources:
xsappname: bookshop-mt-${org}-${space}
oauth2-configuration:
redirect-uris:
- https://*.~{app-api/app-domain}/**
- https://*-~{app-api/app-uri}/** # be as explicit as possible, but keep the wildcard for the tenant subdomain
requires:
- name: app-api
- name: bookshop-mt-service-manager
Expand Down
2 changes: 2 additions & 0 deletions mta-single-tenant.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ modules:
parameters:
memory: 256M
disk-quota: 512M
properties:
CHECK_X_FORWARDED_HOST_IN_LOGIN_CALLBACK: true
requires:
- name: srv-api
group: destinations
Expand Down