-
Notifications
You must be signed in to change notification settings - Fork 107
/
userconfig.js
100 lines (95 loc) · 3.92 KB
/
userconfig.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
/**
* Threema Web configuration.
*/
window.UserConfig = {
/**
* SaltyRTC
*/
// Set this to the hostname of the SaltyRTC server that you want to use. If
// supplied, the substring `{prefix}` will be replaced by the first byte of
// the initiator's public key, represented as a lowercase hexadecimal
// value.
SALTYRTC_HOST: 'saltyrtc-{prefix}.threema.ch',
// The port of the SaltyRTC server to be used.
SALTYRTC_PORT: 443,
// The public permanent key of the SaltyRTC server. Set this value to
// `null` if your server does not provide a public permanent key, or if you
// don't want to verify it.
SALTYRTC_SERVER_KEY: 'b1337fc8402f7db8ea639e05ed05d65463e24809792f91eca29e88101b4a2171',
// If you want the app to use a different SaltyRTC server address than the web
// application (e.g. because of application VPNs, or when provisioning the app
// using an OPPF file), set the variables below. This host/port will be included
// in the QR code, and used by the app to connect.
// If unset, `SALTYRTC_HOST`/`SALTYRTC_PORT` will be used.
SALTYRTC_QR_HOST: null,
SALTYRTC_QR_PORT: null,
/**
* ICE
*/
// Configuration object for the WebRTC STUN and ICE servers. Each URL may
// contain the substring `{prefix}`, which will be replaced by a random
// byte represented as a lowercase hexadecimal value.
ICE_SERVERS: [{
urls: [
'turn:ds-turn-{prefix}.threema.ch:443?transport=udp',
'turn:ds-turn-{prefix}.threema.ch:443?transport=tcp',
'turns:ds-turn-{prefix}.threema.ch:443',
],
username: 'threema-angular',
credential: 'Uv0LcCq3kyx6EiRwQW5jVigkhzbp70CjN2CJqzmRxG3UGIdJHSJV6tpo7Gj7YnGB',
}],
/**
* Push
*/
// The server URL used to deliver push notifications to the app.
PUSH_URL: 'https://push-web.threema.ch/push',
/**
* Fonts
*
* Note: If you want to use the Lab Grotesque font in your self-hosted
* instance (with SELF_HOSTED=true), you need to obtain a license for it
* and update the font URL below. Otherwise, Threema Web will fall back to
* Roboto.
*/
// URL to the Lab Grotesque font.
FONT_CSS_URL: null,
/**
* Logging and diagnostics.
*/
// Padding length (in characters) of the log tag
// Note: The padding will be stripped by the report log.
LOG_TAG_PADDING: 20,
// Console log level
// Note: It is advisable to set this to `info` on production.
CONSOLE_LOG_LEVEL: 'debug',
// Report log level and maximum amount of log records to keep in memory.
// Note: There's no reason to change this unless you want to disable
// the report tool.
REPORT_LOG_LEVEL: 'debug',
REPORT_LOG_LIMIT: 1000,
// Compose area log level
COMPOSE_AREA_LOG_LEVEL: 'warn',
// SaltyRTC log level
SALTYRTC_LOG_LEVEL: 'warn',
// Timer (created by the TimeoutService) log level.
// Note: Log records filtered by this level will prevent them from being
// picked up by the console and the report logger.
TIMER_LOG_LEVEL: 'info',
// App remote protocol log level.
// Note: Log records filtered by this level will prevent them from being
// picked up by the console and the report logger.
ARP_LOG_LEVEL: 'debug',
// Toggles expensive or sensitive logging operations. Toggles logging of
// all chunks and messages exchanged by or associated with the app remote
// protocol.
// Note: Affects performance and contains sensitive information.
ARP_LOG_TRACE: false,
// Toggles URL logging to visualise MsgPack messages for all incoming and
// outgoing protocol messages.
// Note: Affects performance and contains sensitive information.
MSGPACK_LOG_TRACE: false,
// Transport log level
TRANSPORT_LOG_LEVEL: 'warn',
// Always show the real connection state using the dot in the logo
VISUALIZE_STATE: true,
};