From 834edad954ac8db0a9f11a4e2629a3e0a495a958 Mon Sep 17 00:00:00 2001 From: fred Date: Sat, 6 May 2023 02:35:50 +0200 Subject: [PATCH] \342\231\245Box --- setup_nginx.sh | 21 +++++++++++++++++++++ ♥Box | 0 2 files changed, 21 insertions(+) create mode 100755 setup_nginx.sh create mode 100644 ♥Box diff --git a/setup_nginx.sh b/setup_nginx.sh new file mode 100755 index 00000000..91a216b6 --- /dev/null +++ b/setup_nginx.sh @@ -0,0 +1,21 @@ +#!/bin/bash +#script to create the nginx configuraiton file + +echo "server {" > ~/.zen/tmp/astroport_nginx.conf +echo " listen 443;" >> ~/.zen/tmp/astroport_nginx.conf +echo " server_name astroport.locallhost;" >> ~/.zen/tmp/astroport_nginx.conf + +for i in {12245..12445}; +do + echo " location /$i {" >> ~/.zen/tmp/astroport_nginx.conf + echo " proxy_pass http://localhost:$i;" >> ~/.zen/tmp/astroport_nginx.conf + echo " }" >> ~/.zen/tmp/astroport_nginx.conf + i=$(($i + 1)) +done + +echo "}" >> ~/.zen/tmp/astroport_nginx.conf + + ## IN CASE YOU WANT TO ACCESS API THROUGH HTTPS + echo "~/.zen/tmp/astroport_nginx.conf" + echo "Add this file to your nginx config and activate https using certbot..." + echo "TODO: make it easier ;)" diff --git a/♥Box b/♥Box new file mode 100644 index 00000000..e69de29b