-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.ts
More file actions
28 lines (20 loc) · 771 Bytes
/
config.ts
File metadata and controls
28 lines (20 loc) · 771 Bytes
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
const config = {
// The canonical URL of the server running URLshrink, without a trailing slash.
"host": "http://localhost",
// The default port that will be used if one is not set in the enviroment.
"defaultPort": 80,
// The allowed protocols to shorten.
"allowedProtocols": ["http:", "https:"],
// The protocol that will be used if none is specified.
"assumeProtocol": "https:",
// Configure ID generation.
"idChars": "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",
"idLength": 6,
// The maximum length of URLs.
"maxUrlLength": 256,
// How long the cooldown is between shortening URLs, in milliseconds.
"shortenCooldown": 5000,
// The URL for the database.
"mongoDbUrl": "mongodb://127.0.0.1:27017",
}
export default config;