Skip to content

Commit 913c81f

Browse files
authored
Consolidate wa backend servers and merge waHttp into wa (#532)
1 parent cf014a3 commit 913c81f

2 files changed

Lines changed: 18 additions & 13 deletions

File tree

charts/whatsapp-proxy-chart/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type: application
1717
# This is the chart version. This version number should be incremented each time you make changes
1818
# to the chart and its templates, including the app version.
1919
# Versions are expected to follow Semantic Versioning (https://semver.org/)
20-
version: 1.3.7
20+
version: 1.3.8
2121

2222
# This is the version number of the application being deployed. This version number should be
2323
# incremented each time you make changes to the application. Versions are not expected to

charts/whatsapp-proxy-chart/values.yaml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ haproxy:
142142
maxconn: 27495
143143
directBind: ipv4@*:80
144144
proxyBind: ipv4@*:8080 accept-proxy
145-
defaultBackend: wa_http
145+
defaultBackend: wa
146146
haproxyV4Https:
147147
maxconn: 27495
148148
directBind: ipv4@*:443 ssl crt /etc/haproxy/ssl/proxy.whatsapp.net.pem
@@ -165,12 +165,19 @@ haproxy:
165165
serverAddress: whatsapp.net:443
166166
wa:
167167
defaultServer: check inter 60000 observe layer4 send-proxy
168-
serverName: g_whatsapp_net_5222
169-
serverAddress: g.whatsapp.net:5222
170-
waHttp:
171-
defaultServer: check inter 60000 observe layer4 send-proxy
172-
serverName: g_whatsapp_net_80
173-
serverAddress: g.whatsapp.net:80
168+
servers:
169+
- name: g_whatsapp_net_5222
170+
address: g.whatsapp.net:5222
171+
- name: g_whatsapp_net_80
172+
address: g.whatsapp.net:80
173+
- name: g_whatsapp_net_443
174+
address: g.whatsapp.net:443
175+
- name: g_fallback_whatsapp_net_5222
176+
address: g-fallback.whatsapp.net:5222
177+
- name: g_fallback_whatsapp_net_80
178+
address: g-fallback.whatsapp.net:80
179+
- name: g_fallback_whatsapp_net_443
180+
address: g-fallback.whatsapp.net:443
174181

175182
# HAProxy configuration file contents, rendered through `tpl` so the values
176183
# under `haproxy:` above are interpolated. Edit haproxy.* values (or override
@@ -239,8 +246,6 @@ haproxyConfig: |
239246
240247
backend wa
241248
default-server {{ .Values.haproxy.backends.wa.defaultServer }}
242-
server {{ .Values.haproxy.backends.wa.serverName }} {{ .Values.haproxy.backends.wa.serverAddress }}
243-
244-
backend wa_http
245-
default-server {{ .Values.haproxy.backends.waHttp.defaultServer }}
246-
server {{ .Values.haproxy.backends.waHttp.serverName }} {{ .Values.haproxy.backends.waHttp.serverAddress }}
249+
{{- range .Values.haproxy.backends.wa.servers }}
250+
server {{ .name }} {{ .address }}
251+
{{- end }}

0 commit comments

Comments
 (0)