MCPcopy Create free account
hub / github.com/bewcloud/bewcloud / getDefaultConfig

Method getDefaultConfig

lib/config.ts:8–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6 private static config: Config;
7
8 private static getDefaultConfig(): Config {
9 return {
10 auth: {
11 baseUrl: 'http://localhost:8000',
12 allowSignups: false,
13 enableEmailVerification: false,
14 enableForeverSignup: true,
15 enableMultiFactor: false,
16 allowedCookieDomains: [],
17 skipCookieDomainSecurity: false,
18 enableSingleSignOn: false,
19 allowSignupsViaSingleSignOn: false,
20 singleSignOnUrl: '',
21 singleSignOnEmailAttribute: 'email',
22 singleSignOnScopes: ['openid', 'email'],
23 },
24 files: {
25 rootPath: 'data-files',
26 allowPublicSharing: false,
27 allowDirectoryDownloads: false,
28 maxUploadSizeInMegabytes: 100,
29 },
30 core: {
31 enabledApps: ['dashboard', 'files', 'news', 'notes', 'photos', 'expenses', 'contacts', 'calendar'],
32 maxRequestSizeInMegabytes: 12,
33 },
34 visuals: {
35 title: '',
36 description: '',
37 helpEmail: 'help@bewcloud.com',
38 },
39 email: {
40 from: 'help@bewcloud.com',
41 host: 'localhost',
42 port: 465,
43 tlsMode: 'auto',
44 tlsVerify: true,
45 },
46 contacts: {
47 enableCardDavServer: true,
48 cardDavUrl: 'http://radicale:5232',
49 },
50 calendar: {
51 enableCalDavServer: true,
52 calDavUrl: 'http://radicale:5232',
53 },
54 };
55 }
56
57 private static async loadConfig(): Promise<void> {
58 if (this.config) {

Callers 1

loadConfigMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected