express-subdomain
Version:
Simple and lightweight middleware to handle subdomains
21 lines (19 loc) • 548 B
JSON
{
"PORT": 3000,
"urls": {
"API_SUBDOMAIN": "api",
"BASE" : "example.com",
"HOSTNAME" : "api.example.com",
"BASE_URL" : "example.com:3000",
"API_URL" : "api.example.com:3000",
"STATIC_URL" : "static.example.com:3000",
"V1_API_URL" : "v1.api.example.com:3000",
"V2_API_URL" : "v2.api.example.com:3000",
"MULTI_TLD": {
"BASE": "example.co.uk",
"HOSTNAME": "api.example.co.uk",
"BASE_URL": "example.co.uk:3000",
"API_URL": "api.example.co.uk:3000"
}
}
}