Mise à jour de 'Setup'

philc 2023-04-27 08:42:49 +00:00
parent bb100bd432
commit eaad614a4d

@ -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 sudo systemctl (start|stop|reload|restart|status) nginx
#just check all is fine #just check all is fine
sudo systemctl status nginx 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 git config --global credential.helper store
mkdir ~/workspace mkdir ~/workspace
@ -88,20 +91,22 @@ FYI: dev will work without ssl, in production server nginx will manage ssl as a
yarn setup 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 Open your browser and type in the url http://localhost/setup.html
``` ```
{ {
"sudoerUser": "phil - your sudoer user that will run nginx and apxtrib", "nationId": "ants", // an existing nation
"mode": "dev | prod - dev will affect only http and /etc/hosts prod need to have a dns pointing on the IP address port 80 ", "townId": "wall", // a new town name
"nationName": "ants - an existing nation", "IP":"213.32.65.213", // your public IP adresse where the trafic come from
"townName": "devndda - a unique townName that is not in activity", "tribeId":"ndda", // The first tribe of this town to manage the city of tribes
"dns":"apxtrib.dev | mooo.com ... - dns domain where townName.nationName.dns is set to send web traffic to IP:80|443 ", "dns": ["wallant.ndda.fr"],// The dns to access that have to be redirect to the server
"apiport": 3018 - let it except if this port is already use for other services on the machine, api will be route to this port "mayorId":"philc", // An alias pagan that can exist or will be created as mayor
"language": ["fr", "en"], to set language in this town ("en" is default and minimum) "passphrase":"", // Can be empty or not (if not each time something try to use your private key, it will request you a passphrase.
"jwtsecret": "longsentenceusedtoencryptionChangethisforproduction"
let other setup, except if you understand what you are doing
} }
$ yarn setup $ yarn setup