Skip to content

Commit

Permalink
Allow setting IGNORECERT for using https from this container
Browse files Browse the repository at this point in the history
  • Loading branch information
simar0at committed May 22, 2024
1 parent bb1996e commit 55c5c1d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ install_bins() {
basex_cachetimeout=$(read_json "$BUILD_DIR/package.json" ".basex.cachetimeout")
basex_timeout=$(read_json "$BUILD_DIR/package.json" ".basex.timeout")
basex_gzip=$(read_json "$BUILD_DIR/package.json" ".basex.gzip")
basex_ignorecert=$(read_json "$BUILD_DIR/package.json" ".basex.ignorecert")

meta_set "node-version-request" "$node_engine"
meta_set "npm-version-request" "$npm_engine"
Expand Down Expand Up @@ -328,6 +329,7 @@ install_bins() {
sed -i "s~^CACHETIMEOUT.*~CACHETIMEOUT = ${basex_cachetimeout:-3600}~" $BUILD_DIR/.heroku/basex/.basex
sed -i "s~^TIMEOUT.*~TIMEOUT = ${basex_timeout:-30}~" $BUILD_DIR/.heroku/basex/.basex
sed -i "s~^GZIP.*~GZIP = ${basex_gzip:-false}~" $BUILD_DIR/.heroku/basex/.basex
sed -i "s~^IGNORECERT.*~IGNORECERT = ${basex_ignorecert:-false}~" $BUILD_DIR/.heroku/basex/.basex
if [ -d $BUILD_DIR/dba -a -z "$(ls -A -I.git* $BUILD_DIR/dba 2>/dev/null)" ]
then
cp -ra $BUILD_DIR/.heroku/basex/webapp/dba/. $BUILD_DIR/dba
Expand Down

0 comments on commit 55c5c1d

Please sign in to comment.