· 9 years ago · May 27, 2016, 01:18 AM
1# HTTP Server settings
2# It serves static app (optionally) and provides integration API
3http {
4 base-uri: "http://REMOVED:9090"
5 static-files-directory: "/opt/actor-webapp"
6}
7
8# URIs of endpoints, accessible by client applications
9public-endpoints: [
10 "ws://REMOVED:9080",
11 "tcp://REMOVED: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: "REMOVED"
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: REMOVED
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 sms: im.actor.server.activation.gate.ActorGateSmsProvider
136 smtp: im.actor.server.activation.smtp.SMTPProvider
137 }
138 # Allow client to repeat code sending after this interval
139 # repeat-limit: 1m
140 # Time and attempt to expire sms/email activation code
141 # code-expiration: 1 day
142 # code-attempts: 3
143
144 # Email template for email code activation
145 # email {
146 # template: templates/activation-email-template.html
147 # }
148 # Setting for internal activation(aka via actor bot)
149 # internal {
150 # sender-user-id: 10
151 # online-time-window: 10m
152 # message-template: "Your Actor activation code: $$CODE$$"
153 # }
154 }
155
156 # Actor SMS gate
157 # Write to @gatekeeper in Actor Cloud to get your token
158 actor-activation {
159 uri: "https://gate.actor.im"
160 auth-token: "REMOVED"
161 }
162
163 # Telesign SMS gate
164 # To get tokens ask at telesign web site: https://www.telesign.com
165 # telesign {
166 # customer-id: <put_your_customer_id_here>
167 # api-key: <put_your_api_key_here>
168 # }
169
170 # Email configuration
171 email {
172
173 Sender information for outgoing emails
174 sender {
175 # Sender Email address
176 address: noreply@rapidsurf.co.uk
177 # Sender Name
178 name: AuthCode
179 # Mail theme prefix
180 prefix:
181 }
182
183 # SMTP server configuration
184 smtp {
185
186 # SMTP server host
187 host: mail.rapidsurf.co.uk
188 # SMTP server port
189 port: 25
190 # SMTP server username
191 username: noreply@rapidsurf.co.uk
192 # SMTP server password
193 password: REMOVED
194
195 # Is TLS required
196 tls: true
197 }
198 }
199
200 # Accessing Google Services
201 # Used for OAuth2 in gmail mailboxes
202 # and sending push notifications in Android & Chrome
203 #
204 # How to get OAuth2:
205 # * Open https://console.developers.google.com/
206 # * Go To Api&Auth, then to Credentials
207 # * Press "Client Id" and create id for Web Application
208 # * In created Client Id there are values "Client Id" and "Client Secret"
209 # for web OAuth configuration
210 # * Same steps for Android & iOS applications
211 #
212 # How to get Push keys
213 # * Open https://console.developers.google.com/
214 # * Go To Api&Auth, then to Credentials
215 # * Press "Create new key" for Android Application
216 # * Allow any IP
217 # * Get API key from created "Key for Android Application"
218 # * Project Id can be found on Overview page
219 google {
220
221 # Uncomment if you want to perform OAuth authentication
222 # for GMail accounts
223 # oauth {
224 # auth-uri: "https://accounts.google.com/o/oauth2/auth"
225 # token-uri: "https://accounts.google.com/o/oauth2/token"
226 # profile-uri: "https://www.googleapis.com/oauth2/v2/userinfo"
227 # client-id: <put_your_client_id_here>
228 # client-secret: <put_your_client_secret_here>
229 # scope: "https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile https://www.google.com/m8/feeds/"
230 #}
231
232 # Android & Chrome push notifications
233 # push {
234 # # Keys for push notifications in format
235 # keys = [
236 # {
237 # project-id: <put_your_project_id_here>
238 # key: <put_your_key_here>
239 # }
240 # ]
241 # }
242 }
243
244 # Accessing Apple servers for push notifications
245 apple {
246
247 # Safari & iOS notifications
248 # push {
249 # Mobile push certificates
250 # certs = [
251 # {
252 # key: <put_your_certificate_id_here>
253 # path: <put_your_certificate_path_here>
254 # password: <put_your_certificate_password_here>
255 # sandbox: yes / no
256 # }
257 # ]
258 # }
259 }
260}