From eaad614a4ddb4681e8cb183271050f0e642fa0ea Mon Sep 17 00:00:00 2001 From: philc Date: Thu, 27 Apr 2023 08:42:49 +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 | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/Setup.md b/Setup.md index f1850c6..539026a 100644 --- a/Setup.md +++ b/Setup.md @@ -78,6 +78,9 @@ FYI: dev will work without ssl, in production server nginx will manage ssl as a sudo systemctl (start|stop|reload|restart|status) nginx #just check all is fine sudo systemctl status nginx + + #Make sudoUser the master of nginx conf, yarn setup will finish the apxtrib conf + sudo chown -R phil:phil /etc/nginx git config --global credential.helper store mkdir ~/workspace @@ -88,20 +91,22 @@ FYI: dev will work without ssl, in production server nginx will manage ssl as a yarn setup ``` -**if you run for the 1st time then you need to set properly /setup/configsetup.json** +**if you run for the 1st time then you need to set properly ~/workspace/apxtrib/nationchains/www/adminapx/townconf.json ** Open your browser and type in the url http://localhost/setup.html ``` { - "sudoerUser": "phil - your sudoer user that will run nginx and apxtrib", - "mode": "dev | prod - dev will affect only http and /etc/hosts prod need to have a dns pointing on the IP address port 80 ", - "nationName": "ants - an existing nation", - "townName": "devndda - a unique townName that is not in activity", - "dns":"apxtrib.dev | mooo.com ... - dns domain where townName.nationName.dns is set to send web traffic to IP:80|443 ", - "apiport": 3018 - let it except if this port is already use for other services on the machine, api will be route to this port - "language": ["fr", "en"], to set language in this town ("en" is default and minimum) - "jwtsecret": "longsentenceusedtoencryptionChangethisforproduction" + "nationId": "ants", // an existing nation + "townId": "wall", // a new town name + "IP":"213.32.65.213", // your public IP adresse where the trafic come from + "tribeId":"ndda", // The first tribe of this town to manage the city of tribes + "dns": ["wallant.ndda.fr"],// The dns to access that have to be redirect to the server + "mayorId":"philc", // An alias pagan that can exist or will be created as mayor + "passphrase":"", // Can be empty or not (if not each time something try to use your private key, it will request you a passphrase. + +let other setup, except if you understand what you are doing + } $ yarn setup