Add subdomain offset setting
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Add a setting "subdomain offset" for the app, which can be used to change the behavior of req.subdomains. This is useful when our "base" domain contains more than two parts, e.g. example.co.uk, and also when we are running locally with domains like xxx.local. The default behavior is still to return all but the last two parts.
authored by Greg Methvin · committed by Greg Methvin · parent 8beb1f2 · Browse files · 2 files+61 added−6 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+61 added−6 removed
- tests:+50 added−0 removed
- other:+11 added−6 removed