File tree Expand file tree Collapse file tree 9 files changed +62
-57
lines changed Expand file tree Collapse file tree 9 files changed +62
-57
lines changed Original file line number Diff line number Diff line change 12
12
"platform" : " localDebug" ,
13
13
"default_max_upload_avatar_size_in_bytes" : 1000000 ,
14
14
"dev_mode" : true ,
15
+ "qr_code_download_url" : " https://sign-up.twake.app/download/chat" ,
15
16
"enable_logs" : true ,
16
17
"support_url" : " https://twake.app/support"
17
18
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -143,6 +143,10 @@ services:
143
143
- MATRIX_DATABASE_USER=synapse
144
144
- MATRIX_DATABASE_PASSWORD=synapse!1
145
145
146
+ - SMS_API_KEY=SOME_SECRET_KEY
147
+
148
+ - SMS_API_URL=https://api.octopush.com/v1/public
149
+
146
150
- LOG_LEVEL=silly
147
151
- LOG_TRANSPORTS=Console
148
152
@@ -200,12 +204,9 @@ services:
200
204
image : linagora/twake-web
201
205
volumes :
202
206
- ../chat/config.json:/usr/share/nginx/html/web/config.json
203
- - ../chat/default.conf.template:/etc/nginx/templates/default.conf.template
204
207
- ../ssl:/etc/nginx/ssl
205
208
# ports:
206
- # - 6868:6868
207
- environment :
208
- - TWAKECHAT_LISTEN_PORT=6868
209
+ # - 80:80
209
210
networks :
210
211
- frontend
211
212
@@ -221,8 +222,13 @@ services:
221
222
ports :
222
223
- 443:443
223
224
volumes :
224
- - ../haproxy:/usr/local/etc/haproxy
225
+ # Reverse proxy routing configuration
225
226
- ../haproxy/haproxy.tom+fed+chat+admin.cfg:/usr/local/etc/haproxy/haproxy.cfg
227
+ - ../haproxy/cors.lua:/usr/local/etc/haproxy/cors.lua
228
+ - ../haproxy/lua_endpoint_to_function.map_rewrite.cfg:/usr/local/etc/haproxy/lua_endpoint_to_function.map_rewrite.cfg
229
+ - ../haproxy/lua_endpoint_to_worker.map_rewrite.lua:/usr/local/etc/haproxy/lua_endpoint_to_worker.map_rewrite.lua
230
+ - ../haproxy/synapse_worker_endpoint_indexer.lua:/usr/local/etc/haproxy/synapse_worker_endpoint_indexer.lua
231
+ # HTTPS SSL Certs
226
232
- ../ssl/both.pem:/etc/ssl/certs/both.pem
227
233
sysctls :
228
234
- net.ipv4.ip_unprivileged_port_start=0
Original file line number Diff line number Diff line change @@ -135,23 +135,16 @@ services:
135
135
# - USERDB_ENGINE=sqlite ## Uncomment to enable local userDB
136
136
# - USERDB_HOST=/opt/lemon/db/lemon.db ## Uncomment to enable local userDB
137
137
138
- - SMS_API_KEY=SOME_SECRET_KEY
139
-
140
- - SMS_API_URL=https://api.octopush.com/v1/public
141
-
142
138
- LOG_LEVEL=silly
143
139
- LOG_TRANSPORTS=Console
144
140
145
141
chat :
146
142
image : linagora/twake-web
147
143
volumes :
148
144
- ../chat/config.json:/usr/share/nginx/html/web/config.json
149
- - ../chat/default.conf.template:/etc/nginx/templates/default.conf.template
150
145
- ../ssl:/etc/nginx/ssl
151
146
# ports:
152
- # - 6868:6868
153
- environment :
154
- - TWAKECHAT_LISTEN_PORT=6868
147
+ # - 80:80
155
148
networks :
156
149
- frontend
157
150
@@ -167,8 +160,13 @@ services:
167
160
ports :
168
161
- 443:443
169
162
volumes :
170
- - ../haproxy:/usr/local/etc/haproxy
163
+ # Reverse proxy routing configuration
171
164
- ../haproxy/haproxy.tom+fed+chat+admin.cfg:/usr/local/etc/haproxy/haproxy.cfg
165
+ - ../haproxy/cors.lua:/usr/local/etc/haproxy/cors.lua
166
+ - ../haproxy/lua_endpoint_to_function.map_rewrite.cfg:/usr/local/etc/haproxy/lua_endpoint_to_function.map_rewrite.cfg
167
+ - ../haproxy/lua_endpoint_to_worker.map_rewrite.lua:/usr/local/etc/haproxy/lua_endpoint_to_worker.map_rewrite.lua
168
+ - ../haproxy/synapse_worker_endpoint_indexer.lua:/usr/local/etc/haproxy/synapse_worker_endpoint_indexer.lua
169
+ # HTTPS SSL Certs
172
170
- ../ssl/both.pem:/etc/ssl/certs/both.pem
173
171
sysctls :
174
172
- net.ipv4.ip_unprivileged_port_start=0
Original file line number Diff line number Diff line change @@ -143,6 +143,10 @@ services:
143
143
- MATRIX_DATABASE_USER=synapse
144
144
- MATRIX_DATABASE_PASSWORD=synapse!1
145
145
146
+ - SMS_API_KEY=SOME_SECRET_KEY
147
+
148
+ - SMS_API_URL=https://api.octopush.com/v1/public
149
+
146
150
- LOG_LEVEL=silly
147
151
- LOG_TRANSPORTS=Console
148
152
@@ -200,12 +204,9 @@ services:
200
204
image : linagora/twake-web
201
205
volumes :
202
206
- ../chat/config.json:/usr/share/nginx/html/web/config.json
203
- - ../chat/default.conf.template:/etc/nginx/templates/default.conf.template
204
207
- ../ssl:/etc/nginx/ssl
205
208
# ports:
206
- # - 6868:6868
207
- environment :
208
- - TWAKECHAT_LISTEN_PORT=6868
209
+ # - 80:80
209
210
networks :
210
211
- frontend
211
212
@@ -214,8 +215,13 @@ services:
214
215
ports :
215
216
- 443:443
216
217
volumes :
217
- - ../haproxy:/usr/local/etc/haproxy
218
+ # Reverse proxy routing configuration
218
219
- ../haproxy/haproxy.tom+fed+chat.cfg:/usr/local/etc/haproxy/haproxy.cfg
220
+ - ../haproxy/cors.lua:/usr/local/etc/haproxy/cors.lua
221
+ - ../haproxy/lua_endpoint_to_function.map_rewrite.cfg:/usr/local/etc/haproxy/lua_endpoint_to_function.map_rewrite.cfg
222
+ - ../haproxy/lua_endpoint_to_worker.map_rewrite.lua:/usr/local/etc/haproxy/lua_endpoint_to_worker.map_rewrite.lua
223
+ - ../haproxy/synapse_worker_endpoint_indexer.lua:/usr/local/etc/haproxy/synapse_worker_endpoint_indexer.lua
224
+ # HTTPS SSL Certs
219
225
- ../ssl/both.pem:/etc/ssl/certs/both.pem
220
226
sysctls :
221
227
- net.ipv4.ip_unprivileged_port_start=0
Original file line number Diff line number Diff line change @@ -135,23 +135,16 @@ services:
135
135
# - USERDB_ENGINE=sqlite ## Uncomment to enable local userDB
136
136
# - USERDB_HOST=/opt/lemon/db/lemon.db ## Uncomment to enable local userDB
137
137
138
- - SMS_API_KEY=SOME_SECRET_KEY
139
-
140
- - SMS_API_URL=https://api.octopush.com/v1/public
141
-
142
138
- LOG_LEVEL=silly
143
139
- LOG_TRANSPORTS=Console
144
140
145
141
chat :
146
142
image : linagora/twake-web
147
143
volumes :
148
144
- ../chat/config.json:/usr/share/nginx/html/web/config.json
149
- - ../chat/default.conf.template:/etc/nginx/templates/default.conf.template
150
145
- ../ssl:/etc/nginx/ssl
151
146
# ports:
152
- # - 6868:6868
153
- environment :
154
- - TWAKECHAT_LISTEN_PORT=6868
147
+ # - 80:80
155
148
networks :
156
149
- frontend
157
150
@@ -160,8 +153,13 @@ services:
160
153
ports :
161
154
- 443:443
162
155
volumes :
163
- - ../haproxy:/usr/local/etc/haproxy
156
+ # Reverse proxy routing configuration
164
157
- ../haproxy/haproxy.tom+fed+chat.cfg:/usr/local/etc/haproxy/haproxy.cfg
158
+ - ../haproxy/cors.lua:/usr/local/etc/haproxy/cors.lua
159
+ - ../haproxy/lua_endpoint_to_function.map_rewrite.cfg:/usr/local/etc/haproxy/lua_endpoint_to_function.map_rewrite.cfg
160
+ - ../haproxy/lua_endpoint_to_worker.map_rewrite.lua:/usr/local/etc/haproxy/lua_endpoint_to_worker.map_rewrite.lua
161
+ - ../haproxy/synapse_worker_endpoint_indexer.lua:/usr/local/etc/haproxy/synapse_worker_endpoint_indexer.lua
162
+ # HTTPS SSL Certs
165
163
- ../ssl/both.pem:/etc/ssl/certs/both.pem
166
164
sysctls :
167
165
- net.ipv4.ip_unprivileged_port_start=0
Original file line number Diff line number Diff line change @@ -40,8 +40,14 @@ frontend http-in
40
40
acl is_fed hdr_end(host) -i fed.docker.localhost
41
41
use_backend fed if is_fed
42
42
43
- acl is_chat hdr_end(host) -i chat.docker.localhost
44
- use_backend chat if is_chat
43
+ acl is_chat hdr(host) -i chat.docker.localhost
44
+
45
+ # If the host is chat.docker.localhost AND the path is exactly '/'
46
+ # Then redirect to https://chat.docker.localhost/web/ with a 301 Permanent Redirect
47
+ http-request redirect location https://chat.docker.localhost/web/ code 301 if is_chat { path eq / }
48
+
49
+ # Rule to send traffic for chat.docker.localhost to the chat backend
50
+ use_backend chat if is_chat
45
51
46
52
acl is_admin hdr_end(host) -i admin.docker.localhost
47
53
use_backend admin if is_admin
@@ -80,7 +86,7 @@ backend chat
80
86
balance roundrobin
81
87
option forwardfor
82
88
http-request set-header X-Forwarded-Proto https
83
- server node1 chat:6868 check
89
+ server node1 chat:80 check
84
90
85
91
backend admin
86
92
balance roundrobin
Original file line number Diff line number Diff line change @@ -40,8 +40,14 @@ frontend http-in
40
40
acl is_fed hdr_end(host) -i fed.docker.localhost
41
41
use_backend fed if is_fed
42
42
43
- acl is_chat hdr_end(host) -i chat.docker.localhost
44
- use_backend chat if is_chat
43
+ acl is_chat hdr(host) -i chat.docker.localhost
44
+
45
+ # If the host is chat.docker.localhost AND the path is exactly '/'
46
+ # Then redirect to https://chat.docker.localhost/web/ with a 301 Permanent Redirect
47
+ http-request redirect location https://chat.docker.localhost/web/ code 301 if is_chat { path eq / }
48
+
49
+ # Rule to send traffic for chat.docker.localhost to the chat backend
50
+ use_backend chat if is_chat
45
51
46
52
acl is_portal hdr_end(host) -i auth.docker.localhost
47
53
acl is_portal hdr_end(host) -i docker.localhost
@@ -77,4 +83,4 @@ backend chat
77
83
balance roundrobin
78
84
option forwardfor
79
85
http-request set-header X-Forwarded-Proto https
80
- server node1 chat:6868 check
86
+ server node1 chat:80 check
Original file line number Diff line number Diff line change @@ -134,23 +134,16 @@ services:
134
134
# - USERDB_ENGINE=sqlite ## Uncomment to enable local userDB
135
135
# - USERDB_HOST=/opt/lemon/db/lemon.db ## Uncomment to enable local userDB
136
136
137
- - SMS_API_KEY=SOME_SECRET_KEY
138
-
139
- - SMS_API_URL=https://api.octopush.com/v1/public
140
-
141
137
- LOG_LEVEL=silly
142
138
- LOG_TRANSPORTS=Console
143
139
144
140
chat :
145
141
image : linagora/twake-web
146
142
volumes :
147
143
- ./.compose/chat/config.json:/usr/share/nginx/html/web/config.json
148
- - ./.compose/chat/default.conf.template:/etc/nginx/templates/default.conf.template
149
144
- ./.compose/ssl:/etc/nginx/ssl
150
145
# ports:
151
- # - 6868:6868
152
- environment :
153
- - TWAKECHAT_LISTEN_PORT=6868
146
+ # - 80:80
154
147
networks :
155
148
- frontend
156
149
@@ -159,8 +152,13 @@ services:
159
152
ports :
160
153
- 443:443
161
154
volumes :
162
- - ./.compose/haproxy:/usr/local/etc/haproxy
155
+ # Reverse proxy routing configuration
163
156
- ./.compose/haproxy/haproxy.tom+fed+chat.cfg:/usr/local/etc/haproxy/haproxy.cfg
157
+ - ./.compose/haproxy/cors.lua:/usr/local/etc/haproxy/cors.lua
158
+ - ./.compose/haproxy/lua_endpoint_to_function.map_rewrite.cfg:/usr/local/etc/haproxy/lua_endpoint_to_function.map_rewrite.cfg
159
+ - ./.compose/haproxy/lua_endpoint_to_worker.map_rewrite.lua:/usr/local/etc/haproxy/lua_endpoint_to_worker.map_rewrite.lua
160
+ - ./.compose/haproxy/synapse_worker_endpoint_indexer.lua:/usr/local/etc/haproxy/synapse_worker_endpoint_indexer.lua
161
+ # HTTPS SSL Certs
164
162
- ./.compose/ssl/both.pem:/etc/ssl/certs/both.pem
165
163
sysctls :
166
164
- net.ipv4.ip_unprivileged_port_start=0
You can’t perform that action at this time.
0 commit comments