Upload files to ''

This commit is contained in:
Shiny Nematoda
2022-08-03 12:37:47 +02:00
parent f112afc4af
commit 636f78b917
2 changed files with 51 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
version: '3'
services:
hyperpipe-frontend:
image: hyperpipe-frontend
container_name: hyperpipe-frontend
build: ./Hyperpipe
restart: unless-stopped
ports:
- '8080:80'
hyperpipe-backend:
image: hyperpipe-backend
container_name: hyperpipe-backend
build:
context: ./hyperpipe-backend
args:
proxy: hyperpipe-proxy.onrender.com
restart: unless-stopped
ports:
- '3000:3000'
+31
View File
@@ -0,0 +1,31 @@
printf "\nEnter hostname for Proxy (Same as the one used for Piped): " && read -r proxy
printf '\nFetching List of Hostnames for Backends (Hyperpipe) \n\n'
curl -s "https://hyperpipe.codeberg.page/api/backend.json" | jq '.[].api_url|ltrimstr("https://")'
printf "\nEnter hostname for the default hyperpipe backend to be used: " && read -r backend
printf '\nFetching List of Hostnames for Backends (Piped) \n\n'
curl -s "https://piped-instances.kavin.rocks" | jq '.[].api_url|ltrimstr("https://")'
printf "\nEnter hostname for the default piped backend to be used: " && read -r piped
rm -rf ./Hyperpipe ./hyperpipe-backend
git clone --depth 1 https://codeberg.org/Hyperpipe/Hyperpipe.git
git clone --depth 1 https://codeberg.org/Hyperpipe/hyperpipe-backend
rm -f "*/docker-compose.yml"
cp docker-compose.template.yml docker-compose.yml
sed -i "s/hyperpipe-proxy.onrender.com/$proxy/g" docker-compose.yml
sed -i "s/pipedapi.kavin.rocks/$piped/g" "./Hyperpipe/src/scripts/fetch.js"
sed -i "s/pipedapi.kavin.rocks/$piped/g" "./Hyperpipe/src/components/Prefs.vue"
sed -i "s/hyperpipeapi.onrender.com/$backend/g" "./Hyperpipe/src/scripts/fetch.js"
sed -i "s/hyperpipeapi.onrender.com/$backend/g" "./Hyperpipe/src/components/Prefs.vue"
printf '\nDone!\n'