This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>OpenTok API Sample — Basic Tutorial</title> | |
<link href="samples.css" type="text/css" rel="stylesheet" > | |
<script src="http://staging.tokbox.com/v0.91/js/TB.min.js" type="text/javascript" charset="utf-8"></script> | |
</head> | |
<body> | |
<script type="text/javascript" charset="utf-8"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>OpenTok API Sample — Basic Tutorial</title> | |
<link href="samples.css" type="text/css" rel="stylesheet" > | |
<script src="http://staging.tokbox.com/v0.91/js/TB.min.js" type="text/javascript" charset="utf-8"></script> | |
</head> | |
<body> | |
<script type="text/javascript" charset="utf-8"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install HAProxy | |
cd ~ | |
wget http://haproxy.1wt.eu/download/1.5/src/devel/haproxy-1.5-dev6.tar.gz | |
tar xzf haproxy-1.5-dev6.tar.gz | |
cd haproxy* | |
make install | |
# HAProxy config | |
mkdir /etc/haproxy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SSL with Node and Express method 1: | |
var express = require('express') | |
, fs = require("fs") | |
, routes = require('./routes'); | |
var privateKey = fs.readFileSync('cert/key.pem').toString(); | |
var certificate = fs.readFileSync('cert/certificate.pem').toString(); | |
// to enable https |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PORT=800 node | |
process.env.PORT | |
http://nodejs.org/docs/v0.4.7/api/ | |
nodemon | |
superviser | |
node debug script.js |
NewerOlder