\342\231\245Box

This commit is contained in:
fred 2023-05-06 02:35:50 +02:00
parent 024e9cd972
commit 834edad954
2 changed files with 21 additions and 0 deletions

21
setup_nginx.sh Executable file
View File

@ -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 ;)"

0
♥Box Normal file
View File