[mirotalk] - update docs and dep.

This commit is contained in:
Miroslav Pejic
2022-06-19 15:22:45 +02:00
parent 72a93c1f53
commit 5ed05b9568
3 changed files with 15 additions and 9 deletions
+2
View File
@@ -13,6 +13,8 @@ NGROK_ENABLED=true
NGROK_AUTH_TOKEN=YourNgrokAuthToken
```
---
Then, when you run it with `npm start`, you should see in the console log this line:
```bash
+10 -6
View File
@@ -82,9 +82,11 @@ $ sudo ln -s /snap/bin/certbot /usr/bin/certbot
# Setup Nginx sites
$ sudo vim /etc/nginx/sites-enabled/default
```
#---
Paste this:
```bash
# HTTP — redirect all traffic to HTTPS
server {
if ($host = your.domain.name) {
@@ -95,9 +97,9 @@ server {
server_name your.domain.name;
return 404;
}
```
#---
```bash
# Check if all configured correctly
$ sudo nginx -t
@@ -106,9 +108,11 @@ $ sudo certbot certonly --nginx
# Add let's encrypt part on nginx config
$ sudo vim /etc/nginx/sites-enabled/default
```
#---
Paste this:
```bash
# MiroTalk P2P - HTTPS — proxy all requests to the Node app
server {
# Enable HTTP/2
@@ -129,9 +133,9 @@ server {
proxy_set_header Connection "upgrade";
}
}
```
#---
```bash
# Check if all configured correctly
$ sudo nginx -t
+3 -3
View File
@@ -22,14 +22,14 @@
"express": "^4.18.1",
"ngrok": "^4.3.1",
"socket.io": "^4.5.1",
"@sentry/node": "^7.1.1",
"@sentry/integrations": "^7.1.1",
"@sentry/node": "^7.2.0",
"@sentry/integrations": "^7.2.0",
"swagger-ui-express": "^4.4.0",
"uuid": "8.3.2",
"yamljs": "^0.3.0"
},
"devDependencies": {
"node-fetch": "^2.6.6",
"prettier": "2.6.2"
"prettier": "2.7.1"
}
}