Skip to content

Commit bb3727c

Browse files
committed
add more config customizability
1 parent eda6562 commit bb3727c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

config.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ function makeSecret(length) {
1010
return result;
1111
}
1212

13-
exports.groups_permitted = ['ACM Link Shortener Managers', 'ACM Exec', 'ACM Infra Leadership'];
13+
exports.groups_permitted = process.env.groupsPermitted.split(',') || ['ACM Link Shortener Managers', 'ACM Exec', 'ACM Infra Leadership'];
1414

1515
exports.branding = {
16-
title: "ACM Link Shortener",
17-
loginProvider: "ACM",
18-
logoPath: "/static/img/white-banner.svg",
19-
orgHome: "https://acm.illinois.edu",
20-
statusURL: "https://status.acm.illinois.edu",
21-
copyrightOwner: "ACM @ UIUC",
22-
domainHint: "acm.illinois.edu" // primary azure AD domain for tenant.
16+
title: process.env.brandTitle || "ACM Link Shortener",
17+
loginProvider: process.env.brandLoginProvider ||"ACM",
18+
logoPath: process.env.brandLogoPath || "/static/img/white-banner.svg",
19+
orgHome: process.env.brandOrgHome || "https://acm.illinois.edu",
20+
statusURL: process.env.brandStatusURL || "https://status.acm.illinois.edu",
21+
copyrightOwner: process.env.brandCopyrightOwner || "ACM @ UIUC",
22+
domainHint: process.env.brandDomainHint || "acm.illinois.edu" // primary azure AD domain for tenant.
2323
}
2424

2525
exports.creds = {

0 commit comments

Comments
 (0)