Skip to content

Commit 613b0f2

Browse files
Update README.md
1 parent 9da8ea6 commit 613b0f2

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,13 @@ sudo systemctl restart mongod
113113
sudo systemctl disable mongod
114114
sudo systemctl enable mongod
115115
```
116-
116+
---
117117
## A.2. Install nginx web server
118118
```
119119
sudo apt update
120120
sudo apt -y install nginx
121121
```
122+
---
122123
## A.3. Install Certbot
123124
- First, stop the `nginx`
124125
```
@@ -162,7 +163,7 @@ sudo cp /etc/letsencrypt/live/ADMIN_URL/privkey.pem /etc/nginx/ssl/
162163
```
163164
sudo certbot renew
164165
``` -->
165-
166+
---
166167
## A.4. Update the `nginx.conf` file
167168
- Replace the following configuration in your `nginx.conf` file located at `/etc/nginx/nginx.conf`.
168169
```
@@ -262,7 +263,7 @@ http {
262263
```
263264
sudo systemctl restart nginx
264265
```
265-
266+
---
266267
## A.5. Install Node.js and NestJS
267268
```
268269
sudo apt update
@@ -273,7 +274,7 @@ sudo npm install -g n
273274
sudo n 22.14.0
274275
sudo npm i -g @nestjs/cli
275276
```
276-
277+
---
277278
## A.6. Configure Firewall
278279
- Install `ufw`, allow OpenSSH connection, allow nginx connection. Then, allow ports 4000, 5000, and 6000 on the server for Mobile App, Web App, and Admin Web App, respectively. Also, open ports 8883 and 8081 to let IoT devices to connect to the MQTT broker and the web socket, respectively.
279280
```
@@ -295,7 +296,7 @@ sudo ufw enable
295296
```
296297
sudo ufw status
297298
```
298-
299+
---
299300
## A.7. Clone the project
300301
- Install `git`
301302
```
@@ -308,7 +309,7 @@ sudo git clone https://github.com/FidesInnova/Blockchain-based-IoT-Server.git
308309
```
309310

310311
### Continue with Step B if you want to install a new node, or jump to Step C if you want to restore your node from a previous backup.
311-
312+
---
312313
# Step B. Configure a New Node
313314
## B.1. Generate two JWT secret keys
314315
- Generate an access secret key (256-bit / 32-byte)
@@ -320,7 +321,7 @@ openssl rand -hex 32
320321
```
321322
openssl rand -hex 32
322323
```
323-
324+
---
324325
## B.2. Backend configurations
325326
- In project root folder, create `.env` file and edit parameters based on your node URL info
326327
```

0 commit comments

Comments
 (0)