@@ -284,7 +284,7 @@ SGVERSION=v1.3.0
284284 pgrest_binary=linux-static-x64.tar.xz
285285 fi
286286 # pgrest_asset_url="$(curl -s https://api.github.com/repos/PostgREST/postgrest/releases/latest | jq -r '.assets[].browser_download_url' | grep ${pgrest_binary})"
287- pgrest_asset_url=" https://github.com/PostgREST/postgrest/releases/download/v12.0.2 /postgrest-v12.0.2 -${pgrest_binary} "
287+ pgrest_asset_url=" https://github.com/PostgREST/postgrest/releases/download/v12.2.3 /postgrest-v12.2.3 -${pgrest_binary} "
288288 if curl -sL -f -m ${CURL_TIMEOUT} -o postgrest.tar.xz " ${pgrest_asset_url} " ; then
289289 tar xf postgrest.tar.xz & > /dev/null && rm -f postgrest.tar.xz
290290 [[ -f postgrest ]] || err_exit " PostgREST archive downloaded but binary not found after attempting to extract package!"
@@ -332,8 +332,8 @@ SGVERSION=v1.3.0
332332 deploy_haproxy () {
333333 printf " \n[Re]Installing HAProxy.."
334334 pushd ~ /tmp > /dev/null || err_exit
335- major_v=" 3.0 "
336- minor_v=" 2 "
335+ major_v=" 3.1 "
336+ minor_v=" 0 "
337337 haproxy_url=" http://www.haproxy.org/download/${major_v} /src/haproxy-${major_v} .${minor_v} .tar.gz"
338338 if curl -sL -f -m ${CURL_TIMEOUT} -o haproxy.tar.gz " ${haproxy_url} " ; then
339339 tar xf haproxy.tar.gz & > /dev/null && rm -f haproxy.tar.gz
@@ -348,7 +348,7 @@ SGVERSION=v1.3.0
348348 sudo ${pkg_installer} -y install ${pkg_list} > /dev/null || err_exit " 'sudo ${pkg_installer} -y install ${pkg_list} ' failed!"
349349 cd haproxy-${major_v} .${minor_v} || return
350350 make clean > /dev/null
351- make -j $( nproc) TARGET=linux-glibc USE_ZLIB=1 USE_LIBCRYPT=1 USE_OPENSSL=1 USE_STATIC_PCRE2=1 USE_SYSTEMD=1 USE_PROMEX=1 > /dev/null
351+ make -j $( nproc) TARGET=linux-glibc USE_ZLIB=1 USE_LIBCRYPT=1 USE_OPENSSL=1 USE_STATIC_PCRE2=1 USE_PROMEX=1 > /dev/null
352352 sudo make install-bin > /dev/null
353353 sudo cp -f /usr/local/sbin/haproxy /usr/sbin/
354354 else
@@ -393,8 +393,10 @@ SGVERSION=v1.3.0
393393 db-anon-role = "web_anon"
394394 server-host = "127.0.0.1"
395395 server-port = 8050
396+ admin-server-port = 8060
397+ db-hoisted-tx-settings = ""
396398 db-aggregates-enabled = true
397- # db-plan-enabled = false
399+ db-plan-enabled = true
398400 #server-timing-enabled = true
399401 #jwt-secret = "secret-token"
400402 #db-pool = 10
0 commit comments