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
var config = { | |
hosts: { | |
domain: 'prosody', | |
muc: 'conference.prosody', // FIXME: use XEP-0030 | |
focus: 'focus.prosody', | |
}, | |
disableSimulcast: false, | |
resolution: 720, | |
externalConnectUrl: '//localhost/http-pre-bind', | |
// analyticsScriptUrl: "https://meet.jit.si/libs/jitsi-analytics-web-client.min.js", |
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
/* jshint maxlen:false */ | |
var config = { // eslint-disable-line no-unused-vars | |
// configLocation: './config.json', // see ./modules/HttpConfigFetch.js | |
hosts: { | |
domain: 'prosody', | |
bridge: 'videobridge.prosody', | |
anonymousdomain: 'guest.prosody', | |
authdomain: 'prosody', // defaults to <domain> | |
muc: 'conference.prosody', // FIXME: use XEP-0030 |
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
sudo apt-get install libcap2-bin | |
sudo setcap 'cap_net_bind_service=+ep' $(readlink -f $(which node)) |
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
const express = require('express'); | |
const statusMonitor = require('express-status-monitor')({ path: '' }); | |
const healthcheck = require('express-healthcheck'); | |
const versionCheck = require('version-healthcheck'); | |
const swaggerUi = require('swagger-ui-express'); | |
const ErrorController = require('./controllers/ErrorController'); | |
const SfdcController = require('./controllers/SalesforceController'); | |
const swaggerDocument = require('../swagger.json'); | |
const authService = require('./services/authService'); |
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
/* eslint-disable */ | |
const VerifySingleton = { | |
sleep (ms) { | |
return new Promise(resolve => setTimeout(resolve, ms)); | |
}, | |
async testFunc() { | |
return Promise.reject({ | |
statusCode: 500, | |
errorCode, |
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
const { | |
VerifySingleton, | |
VerifyFactory, | |
} = require('./verify'); | |
const factory = new VerifyFactory(); | |
const run = async () => { | |
try { |
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
const UserController = { | |
get(req, res, next) { | |
try { | |
new Promise(resolve => setTimeout(() => resolve({ success: true }), 5000)) | |
.then(res.json) | |
.catch(res.json); | |
} catch (e) { | |
next(e); | |
} | |
}, |
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
functions: | |
my_func: | |
handler: handler.my_func | |
events: | |
- http: | |
path: my_func | |
method: get | |
cors: true |
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
import UserConnector from './user' | |
import sinon from 'sinon' | |
import mongoose from 'mongoose' | |
import UserModel from '../../models/user' | |
describe("User connector", () => { | |
it("should register user", async () => { | |
const expectedUser = { |
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
onSaveClicked = () => { | |
const options = { | |
crossDomain: true, | |
credentials: 'include', | |
method: 'PUT', | |
headers: { | |
'Content-Type': 'application/json', | |
}, | |
body: { | |
filename: this.state.name |
OlderNewer