mirror of
https://api.glitch.com/git/yaswvc
synced 2026-01-11 23:18: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": {
|
||||
"express": "^4.17.1",
|
||||
"peer": "^0.5.3",
|
||||
"ejs": "^3.1.5"
|
||||
"ejs": "^3.1.5",
|
||||
"dotenv": "^8.2.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": "12.x"
|
||||
|
|
|
|||
|
|
@ -10,9 +10,9 @@ var app = new Vue({
|
|||
'iceServers': [
|
||||
{ urls: 'stun:stun.snikket.freeddns.org:3478' },
|
||||
{
|
||||
urls: 'turn:turn.snikket.freeddns.org:3478',
|
||||
username: window.TURN_USER_SKT,
|
||||
credential: window.TURN_PW_SKT
|
||||
urls: ,
|
||||
username: window.TURN_USER,
|
||||
credential: window.TURN_PW
|
||||
}
|
||||
],
|
||||
'sdpSemantics': 'unified-plan',
|
||||
|
|
|
|||
|
|
@ -1,12 +1,11 @@
|
|||
// server.js
|
||||
// where your node app starts
|
||||
require('dotenv').config();
|
||||
|
||||
// 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`.
|
||||
const express = require("express");
|
||||
|
||||
const { ExpressPeerServer } = require("peer");
|
||||
|
||||
const app = express();
|
||||
|
||||
// make all the files in 'public' available
|
||||
|
|
@ -18,8 +17,9 @@ app.set('view engine', 'ejs');
|
|||
app.get("/", (request, response) => {
|
||||
// response.sendFile(__dirname + "/public/index.html");
|
||||
response.render('index', {
|
||||
TURN_USER_SKT: "a",
|
||||
TURN_PW_SKT: "b"
|
||||
TURN_USER: process.env.TURN_USER,
|
||||
TURN_PW: process.env.TURN_PW,
|
||||
TURN_URL: process.env.TURN_URL
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
dependencies:
|
||||
dotenv: 8.2.0
|
||||
ejs: 3.1.5
|
||||
express: 4.17.1
|
||||
peer: 0.5.3
|
||||
|
|
@ -251,6 +252,12 @@ packages:
|
|||
dev: false
|
||||
resolution:
|
||||
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:
|
||||
dev: false
|
||||
resolution:
|
||||
|
|
@ -793,6 +800,7 @@ registry: 'https://registry.npmjs.org/'
|
|||
shrinkwrapMinorVersion: 9
|
||||
shrinkwrapVersion: 3
|
||||
specifiers:
|
||||
dotenv: ^8.2.0
|
||||
ejs: ^3.1.5
|
||||
express: ^4.17.1
|
||||
peer: ^0.5.3
|
||||
|
|
|
|||
|
|
@ -8,8 +8,9 @@
|
|||
<meta name="viewport" content="width=device-width">
|
||||
<meta name="description" content="Yet Another Simple WebRTC Video Chat" />
|
||||
<script>
|
||||
window.TURN_USER_SKT = <%TURN_USER_SKT%>;
|
||||
window.TURN_PW_SKT = <%TURN_PW_SKT%>;
|
||||
window.TURN_USER_SKT = "<%=TURN_USER%>";
|
||||
window.TURN_PW = "<%=TURN_PW%>";
|
||||
window.TURN_URL = "<%=TURN_URL%>";
|
||||
</script>
|
||||
<title>YASWVC</title>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue