From 5ed05b9568d3c87bdd366c3c34bc75d195b4186e Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Sun, 19 Jun 2022 15:22:45 +0200 Subject: [PATCH] [mirotalk] - update docs and dep. --- docs/ngrok.md | 2 ++ docs/self-hosting.md | 16 ++++++++++------ package.json | 6 +++--- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/docs/ngrok.md b/docs/ngrok.md index 96b16841..b3e7caca 100644 --- a/docs/ngrok.md +++ b/docs/ngrok.md @@ -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 diff --git a/docs/self-hosting.md b/docs/self-hosting.md index 352d19ff..e71ff6fb 100644 --- a/docs/self-hosting.md +++ b/docs/self-hosting.md @@ -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 diff --git a/package.json b/package.json index 007b2017..60c2df4c 100644 --- a/package.json +++ b/package.json @@ -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" } }