Point all examples to demo key/cert
This commit is contained in:
parent
a1ed925879
commit
ab829af8ce
@ -4,8 +4,8 @@ const uWS = require('../dist/uws.js');
|
|||||||
const port = 9001;
|
const port = 9001;
|
||||||
|
|
||||||
const app = uWS./*SSL*/App({
|
const app = uWS./*SSL*/App({
|
||||||
key_file_name: '/home/alexhultman/key.pem',
|
key_file_name: 'misc/key.pem',
|
||||||
cert_file_name: '/home/alexhultman/cert.pem',
|
cert_file_name: 'misc/cert.pem',
|
||||||
passphrase: '1234'
|
passphrase: '1234'
|
||||||
}).get('/*', (res, req) => {
|
}).get('/*', (res, req) => {
|
||||||
res.end('Hello World!');
|
res.end('Hello World!');
|
||||||
|
@ -4,8 +4,8 @@ const uWS = require('../dist/uws.js');
|
|||||||
const port = 9001;
|
const port = 9001;
|
||||||
|
|
||||||
const app = uWS./*SSL*/App({
|
const app = uWS./*SSL*/App({
|
||||||
key_file_name: '/home/alexhultman/key.pem',
|
key_file_name: 'misc/key.pem',
|
||||||
cert_file_name: '/home/alexhultman/cert.pem',
|
cert_file_name: 'misc/cert.pem',
|
||||||
passphrase: '1234'
|
passphrase: '1234'
|
||||||
}).get('/user/agent', (res, req) => {
|
}).get('/user/agent', (res, req) => {
|
||||||
/* Read headers */
|
/* Read headers */
|
||||||
|
@ -8,8 +8,8 @@ const uWS = require('../dist/uws.js');
|
|||||||
const port = 9001;
|
const port = 9001;
|
||||||
|
|
||||||
const app = uWS./*SSL*/App({
|
const app = uWS./*SSL*/App({
|
||||||
key_file_name: '/home/alexhultman/key.pem',
|
key_file_name: 'misc/key.pem',
|
||||||
cert_file_name: '/home/alexhultman/cert.pem',
|
cert_file_name: 'misc/cert.pem',
|
||||||
passphrase: '1234'
|
passphrase: '1234'
|
||||||
}).post('/*', (res, req) => {
|
}).post('/*', (res, req) => {
|
||||||
console.log('Posted to ' + req.getUrl());
|
console.log('Posted to ' + req.getUrl());
|
||||||
|
@ -56,8 +56,8 @@ function pipeStreamOverResponse(res, readStream, totalSize) {
|
|||||||
|
|
||||||
/* Yes, you can easily swap to SSL streaming by uncommenting here */
|
/* Yes, you can easily swap to SSL streaming by uncommenting here */
|
||||||
const app = uWS.SSLApp({
|
const app = uWS.SSLApp({
|
||||||
key_file_name: '/home/alexhultman/key.pem',
|
key_file_name: 'misc/key.pem',
|
||||||
cert_file_name: '/home/alexhultman/cert.pem',
|
cert_file_name: 'misc/cert.pem',
|
||||||
passphrase: '1234'
|
passphrase: '1234'
|
||||||
}).get('/sintel.mkv', (res, req) => {
|
}).get('/sintel.mkv', (res, req) => {
|
||||||
/* Log */
|
/* Log */
|
||||||
|
@ -4,8 +4,8 @@ const uWS = require('../dist/uws.js');
|
|||||||
const port = 9001;
|
const port = 9001;
|
||||||
|
|
||||||
const app = uWS./*SSL*/App({
|
const app = uWS./*SSL*/App({
|
||||||
key_file_name: '/home/alexhultman/key.pem',
|
key_file_name: 'misc/key.pem',
|
||||||
cert_file_name: '/home/alexhultman/cert.pem',
|
cert_file_name: 'misc/cert.pem',
|
||||||
passphrase: '1234'
|
passphrase: '1234'
|
||||||
}).ws('/*', {
|
}).ws('/*', {
|
||||||
/* Options */
|
/* Options */
|
||||||
|
Loading…
Reference in New Issue
Block a user