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": "", "nationId": "",
"townId": "", "townId": "",
"sudoUser": "", "sudoUser": "",
"socket":{
"port":3031
},
"api": { "api": {
"port": 3021, "port": 3021,
"activelog": [], "activelog": [],

View File

@ -50,12 +50,12 @@ location /cdn/ {
} }
location /api/ { location /api/ {
rewrite /api/(.*$) /$1 break; rewrite /api/(.*$) /$1 break;
proxy_pass http://localhost:{{{apiport}}}; proxy_pass http://localhost:{{{api.port}}};
proxy_redirect off; proxy_redirect off;
include proxy_params; include proxy_params;
} }
location /socket/ { 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_http_version 1.1;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection '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 { function help {
echo "Need more params, cmd must be $ . setup.sh <tribename> <url to get data> <gitrepourl> <codekey to getdata>" 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 "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 testwall-ants.nnda.fr" 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?code=1234" echo "Example2: setup.sh smatchit https://admin.smatchit.io 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 " 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 "Example3: setup.sh smatchit newtribe"
echo " create a new empty tribe" echo " create a new empty tribe"
} }