adapt new setup

This commit is contained in:
philc 2024-11-15 09:24:06 +01:00
parent 11f5470a57
commit 8f054981fa
2 changed files with 7 additions and 2 deletions

View File

@ -99,7 +99,12 @@ Until the web interface allow it here are usefull process to:
```
cd .. && . setup.sh smatchit https://testwall-ants.ndda.fr https://gitea.ndda.fr/smatchit/smatchit
```
Then conf website test domain and use sudo certbot --nginx -d domainename to get ssl
To conf a new website
* Update in adminapi/objects/tribes/itm/tribename.json add domaine name in dns
* Create a folder in tribename/objects/wwws/itm/webname/src and /dist
* from adminapi/apxtri/setup/nginx.wwwscf create file tribename/nginx/website.tribename.townname.nation.name.conf
* add in tribename/objects/wwws/itm/websitename.json the localdb to send to front
* Then conf website test domain and use sudo certbot --nginx -d domainename to get ssl and access in https
If you want to contribute fixing bug, add new features in adminapi please push in your branch and send an email to support@need-data.com.

View File

@ -17,7 +17,7 @@ Wwws.initlocalwco=(tribwco,profils,lg)=>{
Wwws.initlocaldata = (tribe, appname, pagename, version, profils, lg) => {
const fileparam = `../../${tribe}/objects/wwws/itm/${appname}.json`;
const fileparam = `../../../${tribe}/objects/wwws/itm/${appname}.json`;
console.log(fileparam);
if (!fs.existsSync(fileparam)) {
return { status: 404, ref: "Wwws", msg: "appdoesnotexist", data: {} };