Skip to content

Commit

Permalink
[mirotalk] - update docs and dep.
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpejic85 committed Jun 19, 2022
1 parent 72a93c1 commit 5ed05b9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
2 changes: 2 additions & 0 deletions docs/ngrok.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 10 additions & 6 deletions docs/self-hosting.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -95,9 +97,9 @@ server {
server_name your.domain.name;
return 404;
}
```
#---

```bash
# Check if all configured correctly
$ sudo nginx -t

Expand All @@ -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
Expand All @@ -129,9 +133,9 @@ server {
proxy_set_header Connection "upgrade";
}
}
```
#---

```bash
# Check if all configured correctly
$ sudo nginx -t

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit 5ed05b9

Please sign in to comment.