update setup

This commit is contained in:
philc 2024-11-26 16:14:06 +01:00
parent 2328276a5a
commit a94174e94a
3 changed files with 9 additions and 6 deletions

View File

@ -6,6 +6,9 @@
"nationId": "",
"townId": "",
"sudoUser": "",
"socket":{
"port":3031
},
"api": {
"port": 3021,
"activelog": [],

View File

@ -50,12 +50,12 @@ location /cdn/ {
}
location /api/ {
rewrite /api/(.*$) /$1 break;
proxy_pass http://localhost:{{{apiport}}};
proxy_pass http://localhost:{{{api.port}}};
proxy_redirect off;
include proxy_params;
}
location /socket/ {
proxy_pass http://127.0.0.1:{{socketport}};
proxy_pass http://127.0.0.1:{{socket.port}};
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';

View File

@ -30,10 +30,10 @@ codekey=$4 # code to access backend of the tribe in case it is not newtribe or a
function help {
echo "Need more params, cmd must be $ . setup.sh <tribename> <url to get data> <gitrepourl> <codekey to getdata>"
echo "Example1: . setup.sh adminapi https://app1.smatchit.io?code= https://gitea.ndda.fr/apxtri/adminapi"
echo " install adminapi from the repo (with git accessright) and get data for adminapi from testwall-ants.nnda.fr"
echo "Example2: setup.sh smatchit https://admin.smatchit.io?code=1234"
echo " install smatchit as a copy of testwall-ants.ndda.fr but not from the git (you don't need to have git acess but need to know a specific code)"
echo "Example1: . setup.sh adminapi https://app1.smatchit.io https://gitea.ndda.fr/apxtri/adminapi"
echo " install adminapi from the repo (with git accessright) and get data for adminapi from app1.smatchit.io"
echo "Example2: setup.sh smatchit https://admin.smatchit.io 1234"
echo " install smatchit as a copy of admin.smatchit.io but not from the git (you don't need to have git acess but need to know a specific code like 1234)"
echo "Example3: setup.sh smatchit newtribe"
echo " create a new empty tribe"
}