diff --git a/bin/proxy b/bin/proxy deleted file mode 100755 index 67347a81..00000000 --- a/bin/proxy +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash -# -# Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/ -# -# -# Request a URL via the reverse proxy -# -# Usage: proxy url outfile -# -# Environment variables -# -# BUBBLE_API : which API to use. Default is local (http://127.0.0.1:PORT, where PORT is found in .bubble.env) -# BUBBLE_USER : account to use. Default is root -# BUBBLE_PASS : password for account. Default is root -# BUBBLE_SCRIPTS : location of run.sh script. Default is to assume it is in the same directory containing this script -# -SCRIPT="${0}" -SCRIPT_DIR=$(cd $(dirname ${SCRIPT}) && pwd) -. ${SCRIPT_DIR}/bubble_common - -URL="${1:?no URL provided}" -OUTFILE="${2:?no outfile provided}" -RAW=${3:-true} - -if [[ "${URL}" =~ http:// ]] ; then - URL="http/$(echo -n ${URL} | cut -d/ -f3-)" -elif [[ "${URL}" =~ https:// ]] ; then - URL="https/$(echo -n ${URL} | cut -d/ -f3-)" -else - URL="http/$(echo -n ${URL} | cut -d/ -f3-)" -fi - -PROXY_SCRIPT="${SCRIPT_DIR}/../scripts/proxy.json" -if [[ ! -f "${PROXY_SCRIPT}" ]] ; then - die "proxy API script not found: ${PROXY_SCRIPT}" -fi - -echo '{"URL": "'"${URL}"'", "OUTFILE": "'"${OUTFILE}"'", "RAW": "'"${RAW}"'"}' \ - | ${SCRIPT_DIR}/bscript ${PROXY_SCRIPT} --vars - diff --git a/scripts/create_user_and_network.json b/scripts/create_user_and_network.json deleted file mode 100644 index 852b73ea..00000000 --- a/scripts/create_user_and_network.json +++ /dev/null @@ -1,23 +0,0 @@ -[ - { - "comment": "create new account and network", - "include": "new_bubble", - "params": { - "sageFqdn": "<>", - "username": "<>", - "password": "<>", - "email": "<>", - "network": "<>", - "rootUsername": "<>", - "rootPassword": "<>", - "domain": "<>", - "locale": "<>", - "lang": "<>", - "timezone": "<>", - "plan": "<>", - "footprint": "<>", - "compute": "<>", - "region": "<>" - } - } -] \ No newline at end of file diff --git a/scripts/new_bubble.json b/scripts/new_bubble.json deleted file mode 120000 index da074066..00000000 --- a/scripts/new_bubble.json +++ /dev/null @@ -1 +0,0 @@ -../bubble-server/src/test/resources/models/include/new_bubble.json \ No newline at end of file diff --git a/scripts/proxy.json b/scripts/proxy.json deleted file mode 100644 index 1a3269dc..00000000 --- a/scripts/proxy.json +++ /dev/null @@ -1,17 +0,0 @@ -[ - { - "comment": "declare default parameters for proxy script part", - "include": "_defaults", - "params": { - "URL": "<<>>", - "OUTFILE": "<<>>" - } - }, - - { - "comment": "try proxy to <<>>", - "request": { "uri": "p/<<>>" }, - "response": { "raw": <> }, - "after": "save-download-to-file <>" - } -] \ No newline at end of file