mirror of
https://github.com/ianramzy/decentralized-video-chat.git
synced 2024-10-31 23:49:20 +08:00
Fix auth keys
This commit is contained in:
parent
b20df58b35
commit
0182d38e71
5
.env.template
vendored
Normal file
5
.env.template
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
# Required for all uses
|
||||
# It takes 2 mins to get a free twilio account https://www.twilio.com/login
|
||||
|
||||
TWILIO_ACCOUNT_SID=ACfc9705a2b725a7a314995eb8635a9079
|
||||
LOCAL_AUTH_TOKEN=654560d5d03db5548733959aa49b55bb
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
node_modules/
|
||||
.DS_Store
|
||||
/.idea
|
||||
.env
|
1
README.md
vendored
1
README.md
vendored
@ -6,7 +6,6 @@
|
||||
[![Repo Link](https://img.shields.io/badge/Repo-Link-black.svg)](https://github.com/ianramzy/decentralized-video-chat)
|
||||
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?)](https://github.com/prettier/prettier)
|
||||
|
||||
|
||||
# https://zipcall.io
|
||||
|
||||
Decentralized video chat platform powered by WebRTC using Twilio STUN/TURN infrastructure.
|
||||
|
10
server.js
10
server.js
@ -1,9 +1,11 @@
|
||||
require("dotenv").config();
|
||||
var sslRedirect = require("heroku-ssl-redirect");
|
||||
var twilio = require("twilio")(
|
||||
process.env.TWILIO_ACCOUNT_SID,
|
||||
process.env.AUTH_TOKEN
|
||||
);
|
||||
// Get twillio auth and SID from heroku if deployed, else get from local .env file
|
||||
var twillioAuthToken =
|
||||
process.env.HEROKU_AUTH_TOKEN || process.env.LOCAL_AUTH_TOKEN;
|
||||
var twillioAccountSID =
|
||||
process.env.HEROKU_TWILLIO_SID || process.env.LOCAL_TWILLIO_SID;
|
||||
var twilio = require("twilio")(twillioAccountSID, twillioAuthToken);
|
||||
var express = require("express");
|
||||
var app = express();
|
||||
var http = require("http").createServer(app);
|
||||
|
Loading…
Reference in New Issue
Block a user