mirror of
https://api.glitch.com/git/yaswvc
synced 2026-01-12 01:58:11 +00:00
🌛🏙 Checkpoint
./views/index.ejs:5975361/314 ./server.js:5975361/214 ./package.json:5975361/798 ./public/main.js:5975361/45
This commit is contained in:
parent
61d62d6426
commit
9bf2042449
6 changed files with 20 additions and 10 deletions
|
|
@ -9,7 +9,8 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"express": "^4.17.1",
|
"express": "^4.17.1",
|
||||||
"peer": "^0.5.3",
|
"peer": "^0.5.3",
|
||||||
"ejs": "^3.1.5"
|
"ejs": "^3.1.5",
|
||||||
|
"dotenv": "^8.2.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "12.x"
|
"node": "12.x"
|
||||||
|
|
|
||||||
|
|
@ -10,9 +10,9 @@ var app = new Vue({
|
||||||
'iceServers': [
|
'iceServers': [
|
||||||
{ urls: 'stun:stun.snikket.freeddns.org:3478' },
|
{ urls: 'stun:stun.snikket.freeddns.org:3478' },
|
||||||
{
|
{
|
||||||
urls: 'turn:turn.snikket.freeddns.org:3478',
|
urls: ,
|
||||||
username: window.TURN_USER_SKT,
|
username: window.TURN_USER,
|
||||||
credential: window.TURN_PW_SKT
|
credential: window.TURN_PW
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
'sdpSemantics': 'unified-plan',
|
'sdpSemantics': 'unified-plan',
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,11 @@
|
||||||
// server.js
|
// server.js
|
||||||
// where your node app starts
|
// where your node app starts
|
||||||
|
require('dotenv').config();
|
||||||
|
|
||||||
// we've started you off with Express (https://expressjs.com/)
|
// we've started you off with Express (https://expressjs.com/)
|
||||||
// but feel free to use whatever libraries or frameworks you'd like through `package.json`.
|
// but feel free to use whatever libraries or frameworks you'd like through `package.json`.
|
||||||
const express = require("express");
|
const express = require("express");
|
||||||
|
|
||||||
const { ExpressPeerServer } = require("peer");
|
const { ExpressPeerServer } = require("peer");
|
||||||
|
|
||||||
const app = express();
|
const app = express();
|
||||||
|
|
||||||
// make all the files in 'public' available
|
// make all the files in 'public' available
|
||||||
|
|
@ -18,8 +17,9 @@ app.set('view engine', 'ejs');
|
||||||
app.get("/", (request, response) => {
|
app.get("/", (request, response) => {
|
||||||
// response.sendFile(__dirname + "/public/index.html");
|
// response.sendFile(__dirname + "/public/index.html");
|
||||||
response.render('index', {
|
response.render('index', {
|
||||||
TURN_USER_SKT: "a",
|
TURN_USER: process.env.TURN_USER,
|
||||||
TURN_PW_SKT: "b"
|
TURN_PW: process.env.TURN_PW,
|
||||||
|
TURN_URL: process.env.TURN_URL
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
dependencies:
|
dependencies:
|
||||||
|
dotenv: 8.2.0
|
||||||
ejs: 3.1.5
|
ejs: 3.1.5
|
||||||
express: 4.17.1
|
express: 4.17.1
|
||||||
peer: 0.5.3
|
peer: 0.5.3
|
||||||
|
|
@ -251,6 +252,12 @@ packages:
|
||||||
dev: false
|
dev: false
|
||||||
resolution:
|
resolution:
|
||||||
integrity: sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=
|
integrity: sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=
|
||||||
|
/dotenv/8.2.0:
|
||||||
|
dev: false
|
||||||
|
engines:
|
||||||
|
node: '>=8'
|
||||||
|
resolution:
|
||||||
|
integrity: sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw==
|
||||||
/ee-first/1.1.1:
|
/ee-first/1.1.1:
|
||||||
dev: false
|
dev: false
|
||||||
resolution:
|
resolution:
|
||||||
|
|
@ -793,6 +800,7 @@ registry: 'https://registry.npmjs.org/'
|
||||||
shrinkwrapMinorVersion: 9
|
shrinkwrapMinorVersion: 9
|
||||||
shrinkwrapVersion: 3
|
shrinkwrapVersion: 3
|
||||||
specifiers:
|
specifiers:
|
||||||
|
dotenv: ^8.2.0
|
||||||
ejs: ^3.1.5
|
ejs: ^3.1.5
|
||||||
express: ^4.17.1
|
express: ^4.17.1
|
||||||
peer: ^0.5.3
|
peer: ^0.5.3
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,9 @@
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
<meta name="description" content="Yet Another Simple WebRTC Video Chat" />
|
<meta name="description" content="Yet Another Simple WebRTC Video Chat" />
|
||||||
<script>
|
<script>
|
||||||
window.TURN_USER_SKT = <%TURN_USER_SKT%>;
|
window.TURN_USER_SKT = "<%=TURN_USER%>";
|
||||||
window.TURN_PW_SKT = <%TURN_PW_SKT%>;
|
window.TURN_PW = "<%=TURN_PW%>";
|
||||||
|
window.TURN_URL = "<%=TURN_URL%>";
|
||||||
</script>
|
</script>
|
||||||
<title>YASWVC</title>
|
<title>YASWVC</title>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue