-
Notifications
You must be signed in to change notification settings - Fork 91
/
Copy pathexample-signal.yml
executable file
·169 lines (148 loc) · 11.4 KB
/
example-signal.yml
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
twilio: # Twilio gateway configuration
accountId: loremipsum # Change this to your account id
accountToken: loremipsum # Change this to your token
localDomain: signal.domain.com # Change this to your domain
numbers:
- "+15005550006" # Change this to your number from Twilio
- "+15005550006" # You can use one or more numbers
backupService:
userAuthenticationTokenSharedSecret: bd5ee839bfa83dc1f60af05d7dbae329 # Generate it with `head -c 16 /dev/urandom | hexdump -ve '1/1 "%.2x"'`
storageService:
userAuthenticationTokenSharedSecret: cffe9b783677f8ee3dfb485eef024f68 # Generate it with `head -c 16 /dev/urandom | hexdump -ve '1/1 "%.2x"'`
push:
queueSize: 200
turn: # Coturn server configuration
secret: secret # You will need the same config with the secret in turnserver.conf
uris:
- stun:signal.domain.com:3478 # If you change the port in turnserver.conf, change this too
- stun:signal.domain.com:5349 # If you change the port in turnserver.conf, change this too
- turn:signal.domain.com:5349?transport=udp # If you change the port in turnserver.conf, change this too
- turn:signal.domain.com:3478?transport=udp # If you change the port in turnserver.conf, change this too
cache: # Redis server configuration for cache cluster
url: redis://127.0.0.1:6379/cache
replicaUrls:
- redis://127.0.0.1:6379/cacheReplica
directory:
redis: # Redis server configuration for directory cluster
url: redis://127.0.0.1:6379/directory
replicaUrls:
- redis://127.0.0.1:6379/directoryReplica
client: # Configuration for interfacing with Contact Discovery Service cluster
userAuthenticationTokenSharedSecret: ad2e341ca076657e34e4e29e3bfa6a86 # Generate it with `head -c 16 /dev/urandom | hexdump -ve '1/1 "%.2x"'`
userAuthenticationTokenUserIdSecret: e9c3ed33d99073f48c7acc015f9821e6 # Generate it with `head -c 16 /dev/urandom | hexdump -ve '1/1 "%.2x"'`
sqs:
accessKey: LOREMIPSUM # Change this to your AWS IAM Access Key
accessSecret: loremipsumdolorsitamet # Change this to your AWS IAM Secret
queueUrl: https://sqs.ap-southeast-1.amazonaws.com/637423488741/chatqueue.fifo # Change this to your AWS SQS (FIFO) URL
server: # You can change the certificate with your own certificate
replicationUrl: http://127.0.0.1:9090 # CDS replication endpoint base url
replicationPassword: mypassword # CDS replication endpoint password
replicationCaCertificate: |
-----BEGIN CERTIFICATE-----
MIIF7zCCA9egAwIBAgIUUme0O2hOX+OWLwfKyIzgMFl4sjcwDQYJKoZIhvcNAQEL
BQAwgYYxCzAJBgNVBAYTAklEMRQwEgYDVQQIDAtES0kgSmFrYXJ0YTEQMA4GA1UE
BwwHSmFrYXJ0YTEPMA0GA1UECgwGVGVsa29tMQwwCgYDVQQLDANEZXYxEDAOBgNV
BAMMB2NoYXRhcHAxHjAcBgkqhkiG9w0BCQEWD2RldkBleGFtcGxlLmNvbTAeFw0y
MDAxMTAwODEzMzFaFw0yMTAxMDkwODEzMzFaMIGGMQswCQYDVQQGEwJJRDEUMBIG
A1UECAwLREtJIEpha2FydGExEDAOBgNVBAcMB0pha2FydGExDzANBgNVBAoMBlRl
bGtvbTEMMAoGA1UECwwDRGV2MRAwDgYDVQQDDAdjaGF0YXBwMR4wHAYJKoZIhvcN
AQkBFg9kZXZAZXhhbXBsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK
AoICAQCzGVGK0BM47gmPKE5DlNPuXIA/Jx+DdBMUhyt4AxxrtPBjbruVO05OMjcT
qAXO+DatSQZT/K2/0o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UFYfK3Ls6qz7agm19EmyXO642M5eOdT4tobgt24YsnGx
TupofOEbBU9F31LELSwe3bAu5N8RZvhay5C5u9ZrrUNlp1pr1Ljy0r51SmckmyY7
4g8IT28E3cZhyFUsqwihxlwf9oHhxAzxOTVWiSobibc8r0q3hp3PutQFyPLRrfMf
hDPTpUPm8v1rFRxNWXpe3w92y/iiJ53S4CWVmBIW9iKGqOyj7l2VEqe7KGKVO3Ma
Z5b5jQMf6d2N1Qk2tt8YnL6EbT0mOJedhAfnkJl71UZzK7Lz1kLT+1MnlF+gazol
vJiET6YNSW7sU/GNafapLfIqXU2wCfOFcrLEsW+DOEM2MLcY48ypPDcnwsl6OG+K
qXeFHFld6v6s6pIGmc50pflU4qSJHAASDsUxw08xKxXnTtg=
-----END CERTIFICATE-----
#reconciliationChunkSize: 10 # CDS reconciliation chunk size
#reconciliationChunkIntervalMs: 300000 # Every 5 minutes
messageCache: # Redis server configuration for message store cache
redis:
url: redis://127.0.0.1:6379/messageCache
replicaUrls:
- redis://127.0.0.1:6379/messageCacheReplica
attachments: # AWS S3 configuration
accessKey: LOREMIPSUM # Change this to your AWS IAM Access Key
accessSecret: loremipsumdolorsitamet # Change this to your AWS IAM Secret
bucket: mychatbucket # Change this to your bucket's name
region: ap-southeast-1 # Change this to your bucket's region
cdn: # AWS S3 configuration
accessKey: LOREMIPSUM # Change this to your AWS IAM Access Key
accessSecret: loremipsumdolorsitamet # Change this to your AWS IAM Secret
bucket: mychatbucket # Change this to your bucket's name
region: ap-southeast-1 # Change this to your bucket's region
accountsDatabase:
driverClass: org.postgresql.Driver
user: postgres
password: postgres
url: jdbc:postgresql://127.0.0.1:5431/accountdb
keysDatabase:
driverClass: org.postgresql.Driver
user: postgres
password: postgres
url: jdbc:postgresql://127.0.0.1:5432/keysdb
messageStore:
driverClass: org.postgresql.Driver
user: postgres
password: postgres
url: jdbc:postgresql://127.0.0.1:5433/messagedb
abuseDatabase:
driverClass: org.postgresql.Driver
user: postgres
password: postgres
url: jdbc:postgresql://127.0.0.1:5434/abusedb
gcm:
senderId: 874271879526 # Change this to your FCM Sender ID
apiKey: AAAAy46qMWY:APA91bEe3gCLQIXRAXs8L6YITyt_2AP-d3k96s6j7-BQOqdvt03uad0fUivTZnvIMHWNrmRsnVFibjCB7QzlJ5iVKk9mQ9S_INx6MY4DxEnpz9SIcGOeaEnN09OV3tx6F9ZDMLRWfakB # Change this to your FCM API Key
recaptcha:
secret: 6Leiu84UAAAAAOBjJpJyDsjf-2DaxhmLTl2Mn-ek # Change this to your Google Recaptcha secret
accountDatabaseCrawler:
chunkSize: 1000
chunkIntervalMs: 1000000
apn: # You can use these value if you don't need Apple Push Notification
pushCertificate: "-----BEGIN CERTIFICATE-----\r\nMIIFjzCCBHegAwIBAgIIfkSIVVtC9UIwDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV\r\nBAYTAlVTMRMwEQYDVQQKDApBcHBsZSBJbmMuMSwwKgYDVQQLDCNBcHBsZSBXb3Js\r\nZHdpZGUgRGV2ZWxvcGVyIFJlbGF0aW9uczFEMEIGA1UEAww7QXBwbGUgV29ybGR3\r\naWRlIERldmVsb3BlciBSZWxhdGlvbnMgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkw\r\nHhcNMTkwNTA5MTc0NzUyWhcNMjAwNTA4MTc0NzUyWjCBjjElMCMGCgmSJomT8ixk\r\nAQEMFWNvbS5xYW5kb3JhcHAucWFuZG9yMzFDMEEGA1UEAww6QXBwbGUgRGV2ZWxv\r\ncG1lbnQgSU9TIFB1c2ggU2VydmljZXM6IGNvbS5xYW5kb3JhcHAucWFuZG9yMzET\r\nMBEGA1UECwwKTlA2UE5GUUdBODELMAkGA1UEBhMCVVMwggEiMA0GCSqGSIb3DQEB\r\nAQUAA4IBDwAwggEKAoIBAQDIo+8GD6chbxCFDI7bTK6iTxQHnD/FiXJvEYBbO3ey\r\nQV8/XZm66VbO+RbA4UArA2bjdW5KZkSQ7hSYJcomQCmcmpqmrXjcaL0KfeWinSz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JhkpylTUi/uuW1ygtIsKi7R2VaUaTC8KnhPHjODAyydqD3noiw0DLRB0vNfpr08h4AQHGCKBkiK # Change this to your generated certificate
privateKey: kHuIcZl6Y9MN5rM541Ordh5xRzWI3wXdaP2S8pY3wlI= # Change this to you generated private key
expiresDays: 365
voiceVerification:
url: https://server.chatapp.net
locales:
- en
pushScheduler:
url: redis://127.0.0.1:6379/pushScheduler
replicaUrls:
- redis://127.0.0.1:6379/pushSchedulerReplica
circuitBreaker:
failureRateThreshold: 50
ringBufferSizeInHalfOpenState: 10
ringBufferSizeInClosedState: 100
waitDurationInOpenStateInSeconds: 10
server:
applicationConnectors:
- type: http
port: 8080
adminConnectors:
- type: http
port: 8081