Mise à jour de 'Setup'

philc 2023-05-02 07:20:10 +00:00
parent 7b6dfe6bf8
commit b522ef1c91

@ -88,9 +88,24 @@ FYI: dev will work without ssl, in production server nginx will manage ssl as a
git clone https://gitea.ndda.fr/apxtrib/apxtrib.git
cd apxtrib
yarn install
yarn setup
yarn setup // open in your browser http://adminapx to finish the setup
```
In dev we use the same machine to host and to dev so check you have in /etc/hosts this line
```
127.0.0.1 adminapx
```
In production check your public dns are well redirect to public IP's of the server. Open any terminal and check this command answer properly with your public IP
```
ping dns
```
Then check your firewall or router that a NAT exist and redirect the traffic on port 80 and 443 to your local IP server. To identify local IP of your server open a terminal in your server
```
ip a
```
Will show you the IP of your machine. Then depending of tou internet provider open your firewall.
**if you run for the 1st time then you need to set properly ~/workspace/apxtrib/nationchains/www/adminapx/townconf.json **
```
@ -122,7 +137,7 @@ $ sudo systemctl restart nginx
$ yarn dev # to test or dev<br>
$ yarn unittest # to run unittesting
Open your browser in http://dns then you are in your unchain town's interface as dev
Open your browser in http://adminapx then you are in your unchain town's interface as dev
```
@ -135,7 +150,7 @@ git clone https://gitea.ndda.fr/apxtrib/apxtrib.wiki.git
### For production
As for dev, check your http://den answer correctly in your browser
As for dev, check your http://dsn answer correctly in your browser
**install certbot of let's encrypt for https within nginx conf**