update setup
This commit is contained in:
parent
2328276a5a
commit
a94174e94a
@ -6,6 +6,9 @@
|
||||
"nationId": "",
|
||||
"townId": "",
|
||||
"sudoUser": "",
|
||||
"socket":{
|
||||
"port":3031
|
||||
},
|
||||
"api": {
|
||||
"port": 3021,
|
||||
"activelog": [],
|
||||
|
@ -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';
|
||||
|
@ -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"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user