Skip to content

Commit

Permalink
Update ogmios links
Browse files Browse the repository at this point in the history
  • Loading branch information
rdlrt committed Oct 5, 2023
1 parent 1418511 commit e9c9b7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion scripts/cnode-helper-scripts/guild-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,8 @@ download_ogmios() {
if command -v ogmios >/dev/null; then ogmios_version="$(ogmios --version)"; else ogmios_version="v0.0.0"; fi
rm -rf /tmp/ogmios && mkdir /tmp/ogmios
pushd /tmp/ogmios >/dev/null || err_exit
ogmios_asset_url="$(curl -s https://api.github.com/repos/CardanoSolutions/ogmios/releases/latest | jq -r '.assets[].browser_download_url')"
# ogmios_asset_url="$(curl -s https://api.github.com/repos/CardanoSolutions/ogmios/releases/latest | jq -r '.assets[].browser_download_url')"
ogmios_asset_url="$(curl -s https://api.github.com/repos/CardanoSolutions/ogmios/releases/120390670/assets | jq -r '.[].browser_download_url')" # Temporary until v6 is released
if curl -sL -f -m ${CURL_TIMEOUT} -o ogmios.zip ${ogmios_asset_url}; then
unzip ogmios.zip &>/dev/null
rm -f ogmios.zip
Expand Down
4 changes: 2 additions & 2 deletions scripts/grest-helper-scripts/setup-grest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ SGVERSION=v1.0.11rc
http-request use-service prometheus-exporter if { path /metrics }
http-request track-sc0 src table flood_lmt_rate
http-request deny deny_status 429 if { sc_http_req_rate(0) gt 500 }
use_backend ogmios if { path_beg /api/v1/ogmios } || { path_beg /dashboard.js } || { path_beg /assets } || { path_beg /health } || is_wss
use_backend ogmios if { path_beg /api/ogmios } || { path_beg /dashboard.js } || { path_beg /assets } || { path_beg /health } || is_wss
use_backend submitapi if { path_beg /api/v1/submittx }
use_backend grest_failover if srv_down
default_backend grest_postgrest
Expand All @@ -473,7 +473,7 @@ SGVERSION=v1.0.11rc
backend ogmios
balance first
http-request set-path \"%[path,regsub(^/api/v1/ogmios/,/)]\"
http-request set-path \"%[path,regsub(^/api/ogmios/,/)]\"
option httpchk GET /health
http-check expect status 200
default-server inter 20s fall 1 rise 2
Expand Down

0 comments on commit e9c9b7f

Please sign in to comment.