· 9 years ago · May 27, 2016, 12:42 AM
1# HTTP Server settings
2# It serves static app (optionally) and provides integration API
3http {
4 base-uri: "http://REMOVEDFORSECURITY:9090"
5 static-files-directory: "/opt/actor-webapp"
6}
7
8# URIs of endpoints, accessible by client applications
9public-endpoints: [
10 "ws://REMOVEDFORSECURITY:9080",
11 "tcp://REMOVEDFORSECURITY:9070"
12]
13# Endpoints for Mobile/Web API
14# It is strictly recommended to use 443 port
15# for all connections. There are a lot of problems
16# on any other ports.
17#
18# Array of elements in format:
19# {
20# type: "tcp" or "websocket"
21# host: Listening host
22# post: Listening port
23# keystore: [Optional] Keystore
24# }
25# endpoints: [
26# {
27# type: tcp
28# interface: "0.0.0.0"
29# port: 9070
30# },
31# {
32# type: websocket
33# interface: "0.0.0.0"
34# port: 9080
35# }
36#]
37
38# Name of your application.
39project-name: "Actor Messenger"
40
41# Secret is used to work with various secrets like password, auth hashes, etc
42# It have to be set once and never be changed in future
43secret: "REMOVEDFORSECURITY"
44
45# Server modules
46modules {
47 files {
48 adapter: "im.actor.server.file.local.LocalFileStorageAdapter"
49 }
50
51 security {
52 server-keys: [
53 {
54 public: "/opt/actor-keys/actor-key.pub"
55 private: "/opt/actor-keys/actor-key.private"
56 }
57 ]
58 }
59
60 # Configuration for messaging module
61 # messaging {
62 # Configure url for group invites here
63 # groups {
64 # invite {
65 # base-uri: https://quit.email
66 # }
67 # }
68 # }
69
70 # Message enricher
71 # Comment this module if you don't want to use message
72 # enriching feature
73 # enricher {
74 # Uncomment to customize max image preview size
75 # max-preview-size = 2 M
76 # }
77}
78
79# Services that are used by the server.
80# Default distribution support services:
81# * [REQUIRED] postgresql: PostgreSQL database
82# * email: Email integration
83# * aws: Amazon Web Services integration
84# * google: Accessing Google services
85# * apple: Accessing Apple services
86# * telesign: Telesign Activation gateway
87# * actor-activation: Actor Activation gateway
88
89services {
90
91 # PostgreSQL storage for data
92 # The only required service to start server
93 # For more information see https://github.com/actorapp/actor-bootstrap/blob/master/docs/server/configure-database.md
94 postgresql {
95 # Host of PostgreSQL instance
96 host: localhost
97 # Port of PostgreSQL instance
98 port: 5432
99 # Database name
100 db: actor
101 # User name in PostgreSQL
102 user: actor
103 # Password in PostgreSQL
104 password: REMOVEDFORSECURITY
105 }
106
107 file-storage {
108 location: "/opt/actor-files"
109 }
110
111 # AWS configuration
112 # It is strictly recommended to configure s3 storage for
113 # enabling file sharing in apps
114 aws {
115 # S3 Storage, used for file sharing
116 # For more information see https://github.com/actorapp/actor-bootstrap/blob/master/docs/server/configure-s3.md
117 s3 {
118 # S3 Api Key
119 access-key: <put_your_aws_key_here>
120 # S3 Api Secret
121 secret-key: <put_your_aws_secret_here>
122 # File bucket
123 default-bucket: <put_your_bucket_here>
124 # S3 Endpoint
125 # endpoint: <put_your_custom_endpoint_here>
126 # Enable S3 URLs with path-style access
127 # path-style-access: true / false
128 }
129 }
130
131 # Service used for sending activation codes
132 activation {
133 # Define code providers. look im.actor.server.activation for full provider list
134 # providers {
135 # internal: im.actor.server.activation.internal.InternalCodeProvider
136 # sms: im.actor.server.activation.gate.ActorGateSmsProvider
137 # smtp: im.actor.server.activation.smtp.SMTPProvider
138 # call: im.actor.server.activation.telesign.TelesignProvider
139 # }
140 # Allow client to repeat code sending after this interval
141 # repeat-limit: 1m
142 # Time and attempt to expire sms/email activation code
143 # code-expiration: 1 day
144 # code-attempts: 3
145
146 # Email template for email code activation
147 # email {
148 # template: templates/activation-email-template.html
149 # }
150 # Setting for internal activation(aka via actor bot)
151 # internal {
152 # sender-user-id: 10
153 # online-time-window: 10m
154 # message-template: "Your Actor activation code: $$CODE$$"
155 # }
156 }
157
158 # Actor SMS gate
159 # Write to @gatekeeper in Actor Cloud to get your token
160 actor-activation {
161 uri: "https://gate.actor.im"
162 auth-token: "REMOVEDFORSECURITY"
163 }
164
165 # Telesign SMS gate
166 # To get tokens ask at telesign web site: https://www.telesign.com
167 # telesign {
168 # customer-id: <put_your_customer_id_here>
169 # api-key: <put_your_api_key_here>
170 # }
171
172 # Email configuration
173 email {
174
175 # Sender information for outgoing emails
176 # sender {
177 # Sender Email address
178 # address: noreply@rapidsurf.co.uk
179 # Sender Name
180 # name: Auth Code
181 # Mail theme prefix
182 # prefix:
183 # }
184
185 # SMTP server configuration
186 # smtp {
187
188 # SMTP server host
189 # host: mail.rapidsurf.co.uk
190 # SMTP server port
191 # port: 25
192 # SMTP server username
193 # username: noreply@rapidsurf.co.uk
194 # SMTP server password
195 # password: REMOVEDFORSECURITY
196
197 # Is TLS required
198 # tls: true
199 # }
200 }
201
202 # Accessing Google Services
203 # Used for OAuth2 in gmail mailboxes
204 # and sending push notifications in Android & Chrome
205 #
206 # How to get OAuth2:
207 # * Open https://console.developers.google.com/
208 # * Go To Api&Auth, then to Credentials
209 # * Press "Client Id" and create id for Web Application
210 # * In created Client Id there are values "Client Id" and "Client Secret"
211 # for web OAuth configuration
212 # * Same steps for Android & iOS applications
213 #
214 # How to get Push keys
215 # * Open https://console.developers.google.com/
216 # * Go To Api&Auth, then to Credentials
217 # * Press "Create new key" for Android Application
218 # * Allow any IP
219 # * Get API key from created "Key for Android Application"
220 # * Project Id can be found on Overview page
221 google {
222
223 # Uncomment if you want to perform OAuth authentication
224 # for GMail accounts
225 # oauth {
226 # auth-uri: "https://accounts.google.com/o/oauth2/auth"
227 # token-uri: "https://accounts.google.com/o/oauth2/token"
228 # profile-uri: "https://www.googleapis.com/oauth2/v2/userinfo"
229 # client-id: <put_your_client_id_here>
230 # client-secret: <put_your_client_secret_here>
231 # scope: "https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile https://www.google.com/m8/feeds/"
232 #}
233
234 # Android & Chrome push notifications
235 # push {
236 # # Keys for push notifications in format
237 # keys = [
238 # {
239 # project-id: <put_your_project_id_here>
240 # key: <put_your_key_here>
241 # }
242 # ]
243 # }
244 }
245
246 # Accessing Apple servers for push notifications
247 apple {
248
249 # Safari & iOS notifications
250 # push {
251 # Mobile push certificates
252 # certs = [
253 # {
254 # key: <put_your_certificate_id_here>
255 # path: <put_your_certificate_path_here>
256 # password: <put_your_certificate_password_here>
257 # sandbox: yes / no
258 # }
259 # ]
260 # }
261 }
262}