forked from chairemobilite/transition
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
171 lines (160 loc) · 5.93 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
module.exports = {
projectShortname: 'demo_transition',
projectDirectory: `${__dirname}/runtime/`,
auth: {
localLogin: {
// Whether users can create an account. If false, the register page will not be available. Defaults to true
allowRegistration: true,
// This will send an email to confirm the user's email address. Email send needs to be configured. By default, users can register and directly login.
// confirmEmail: true,
// Whether to allow users to reset their password. If false, the forgot password page will not be available. By default the page is not present
// forgotPasswordPage: false,
// Whether to allow users to login with a username. If false, the username field will not be displayed on the login page. Defaults to true
// registerWithEmailOnly?: boolean;
// What type of confirmation is required for the email. Can be 'confirmByAdmin' | 'confirmByUser'. Defaults to 'confirmByUser'
// confirmEmailStrategy: 'confirmByUser';
}
// Transition does not support any other login method than localLogin
},
maxParallelCalculators: 2,
// Maximum number of parallel calculation. Used in tasks to start the calculator with this number of threads.
// maxParallelCalculators: 2,
// @deprecated: Use the cacheAllScenarios in the 'routing.transit.engines.trRouting' configuration instead
// trRoutingCacheAllScenarios: false,
// Configuration for the trRouting services. Single is for the single calculation instance (from the UI and public API), while batch is for the batch calculation instance, for tasks
// routing: {
// transit: {
// defaultEngine: 'trRouting',
// engines: {
// trRouting: {
// single: {
// port: 4000,
// // Enable caching of connections for all scenarios in trRouting. Will use more memory
// cacheAllScenarios: false,
// debug: false,
// logs: { maxFileSizeKB: 5120, nbFiles: 3 }
// },
// batch: {
// port: 14000,
// // Enable caching of connections for all scenarios in trRouting. Will use more memory and may not be necessary for batch calculations as currently there's only one scenario per task
// cacheAllScenarios: false,
// debug: false,
// logs: { maxFileSizeKB: 5120, nbFiles: 3 }
// }
// }
// }
// },
// // Configuration for simple routing modes, using OSRM-like engines
// driving: {
// defaultEngine: 'osrmRouting',
// engines: {
// osrmRouting: {
// port: 7000, // Port used to access OSRM, either locally or remotely
// host: null, // If set to null, localhost will be used. Ignored if autoStart set to true
// autoStart: true, // If true, a local instance of OSRM will be started
// enabled: true // If true, this mode will be configured, otherwise will be left out
// }
// }
// },
// cycling: {
// defaultEngine: 'osrmRouting',
// engines: {
// osrmRouting: { port: 8000, host: null, autoStart: true, enabled: true }
// }
// },
// walking: {
// defaultEngine: 'osrmRouting',
// engines: {
// osrmRouting: { port: 5001, host: null, autoStart: true, enabled: true }
// }
// },
// bus_suburb: {
// defaultEngine: 'osrmRouting',
// engines: {
// osrmRouting: { port: 7110, host: null, autoStart: true, enabled: true }
// }
// },
// bus_urban: {
// defaultEngine: 'osrmRouting',
// engines: {
// osrmRouting: { port: 7120, host: null, autoStart: true, enabled: true }
// }
// },
// rail: {
// defaultEngine: 'osrmRouting',
// engines: {
// osrmRouting: { port: 9000, host: null, autoStart: false, enabled: false }
// }
// },
// tram: {
// defaultEngine: 'osrmRouting',
// engines: {
// osrmRouting: { port: 9100, host: null, autoStart: false, enabled: false }
// }
// },
// tram_train: {
// defaultEngine: 'osrmRouting',
// engines: {
// osrmRouting: { port: 9200, host: null, autoStart: false, enabled: false }
// }
// },
// metro: {
// defaultEngine: 'osrmRouting',
// engines: {
// osrmRouting: { port: 9300, host: null, autoStart: false, enabled: false }
// }
// },
// monorail: {
// defaultEngine: 'osrmRouting',
// engines: {
// osrmRouting: { port: 9400, host: null, autoStart: false, enabled: false }
// }
// },
// cable_car: {
// defaultEngine: 'osrmRouting',
// engines: {
// osrmRouting: { port: 9500, host: null, autoStart: false, enabled: false }
// }
// },
// },
mapDefaultCenter: {
lat: 45.5092960,
lon: -73.4769080
},
languages: ['fr', 'en'],
locales: {
fr: 'fr-CA',
en: 'en-CA'
},
languageNames: {
fr: "Français",
en: "English"
},
title: {
fr: "Démo",
en: "Demo"
},
defaultLocale: "fr",
timezone: "America/Montreal",
gtfs: {
socketFileUploaderOptions: {
uploadDirectory : 'gtfs',
fileExtension : 'zip',
renamedFileNameWithoutExtension: 'import',
acceptTypes : ['application/zip'],
maxFileSizeMB : 256,
chunckSizeMB : 10240000,
overwriteExistingFile : true
}
},
defaultPreferences: {
transit: {
routing: {
batch: {
allowSavingOdTripsToDb: true
}
}
}
},
tokenLifespanDays: 14
};