File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -eou pipefail
3
3
4
+ ENVOY_CDS_CONF=/etc/envoy/cds.yaml
4
5
ENVOY_LDS_CONF=/etc/envoy/lds.yaml
5
6
touch /var/log/services/envoy.log
6
7
@@ -37,9 +38,9 @@ sed -i -e "s|anon_key|$ANON_KEY|g" \
37
38
" $ENVOY_LDS_CONF "
38
39
39
40
# Update Envoy ports
40
- sed -i " s|:80 |: $ENVOY_HTTP_PORT |g" " $ENVOY_LDS_CONF "
41
- sed -i " s|:443 |: $ENVOY_HTTPS_PORT |g" " $ENVOY_LDS_CONF "
42
- sed -i " s|:3000 |: $PGRST_SERVER_PORT |g" " $ENVOY_LDS_CONF "
43
- sed -i " s|:3001 |: $PGRST_ADMIN_SERVER_PORT |g" " $ENVOY_LDS_CONF "
44
- sed -i " s|:8085 |: $ADMIN_API_PORT |g" " $ENVOY_LDS_CONF "
45
- sed -i " s|:9999 |: $GOTRUE_API_PORT |g" " $ENVOY_LDS_CONF "
41
+ sed -i " s|port_value: 80$|port_value: $ENVOY_HTTP_PORT |g" " $ENVOY_LDS_CONF "
42
+ sed -i " s|port_value: 443$|port_value: $ENVOY_HTTPS_PORT |g" " $ENVOY_LDS_CONF "
43
+ sed -i " s|port_value: 3000$|port_value: $PGRST_SERVER_PORT |g" " $ENVOY_CDS_CONF "
44
+ sed -i " s|port_value: 3001$|port_value: $PGRST_ADMIN_SERVER_PORT |g" " $ENVOY_CDS_CONF "
45
+ sed -i " s|port_value: 8085$|port_value: $ADMIN_API_PORT |g" " $ENVOY_CDS_CONF "
46
+ sed -i " s|port_value: 9999$|port_value: $GOTRUE_API_PORT |g" " $ENVOY_CDS_CONF "
You can’t perform that action at this time.
0 commit comments