From d2aa41fb97da6ab8c4720ca10b530d28779d3300 Mon Sep 17 00:00:00 2001 From: philc Date: Tue, 2 May 2023 08:14:50 +0000 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'Setup'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Setup.md | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/Setup.md b/Setup.md index cf9f6b4..77ce210 100644 --- a/Setup.md +++ b/Setup.md @@ -8,12 +8,13 @@ In any doubt ask the community to set up a production server for small cost for **Data pre-request:** -* identify a **nationName** you want to belong to (example: ants) - see [nations list](https://apxtrib.crabdance.com/socialworld/objects/nations/searchindex/nationslist.json) -* a **townName** that does not exist (example:) [towns list](https://apxtrib.crabdance.com/socialworld/objects/nations/searchindex/townslist.json) -* **sudoerUser** that will be create with root access right on your machine +* identify a **nationName** you want your town belongs to, this means that your tyown will follow the law of this nation (example: ants) - see [nations list](https://apxtrib.crabdance.com/socialworld/objects/nations/searchindex/nationslist.json) +* a **townName** that does not already exist (example:) [towns list](https://apxtrib.crabdance.com/socialworld/objects/nations/searchindex/townslist.json) +* **sudoerUser** that will be create with root access right on your machine. * a **dns** that redirect to your public IP server - - For dev: set in /etc/hosts with 127.0.0.1 townName.nationName - - For prod: example: mooo.com, register a townname.nationname A IP adresss with your own domaine + - For dev on the same machine, add in /etc/hosts this line: 127.0.0.1 adminapx + - For dev on a different machine, add in /etc/hosts this line: {localIP} adminapx + - For prod, register a townname.nationname A IP adresss with your own domain name see the free DNS Solution if you have not a domain [https://gitea.ndda.fr/apxtrib/apxtrib/wiki/UsefullfreeDNS]
to get your public IP [https://www.whatismyip.com/](https://www.whatismyip.com) @@ -31,11 +32,11 @@ This tuto will: * use nginx as reverse proxy based on dns abd url to the apXtrib routes * use nginx to serve static file based on dns and file name * use pm2 to manage apxtrib.js, see [pm2 doc](https://pm2.keymetrics.io/docs/usage/pm2-doc-single-page/) -* serve the apxtrib webapp graphical interface to manage your env (create new ClientId space, manage your server's ressource,... ) +* serve adminapx interface onto http://adminapx webapp graphical interface to manage your setup and more **At the end** -* **For production:** you will have a town live instance link to the nationchains. Graphical interface will be on https://townName.nationName.dns with your data -* **For dev:** a local town with **no link to the nationchains**, to create/test plugins/new feature, that you can also use as pre-prod available in http://townname.nationName + +You will have a town server. Graphical interface will accessible as a public service on https://yourdns or local http://adminapx ## To set up a machine @@ -54,7 +55,7 @@ Create a safe user (with sudo access) in this example phil phil ALL=(ALL) NOPASSWD: ALL # exit and save su phil - sudo apt install git vim libcap2-bin p7zip-full p7zip-rar curl + sudo apt install git vim libcap2-bin p7zip-full p7zip-rar curl nginx # Install last nvm** (check website to get latest v0.xx) curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash # close and re-open terminal under phil