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
version: '3' | |
services: | |
edik_1: | |
restart: always | |
image: "${IMAGE}:${TAG}" | |
hostname: "${HOSTNAME}_1" | |
env_file: | |
- ./config.env | |
user: root | |
mem_limit: 4g |
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
FROM node:14.19.1-stretch-slim as base | |
ENV APP_DIR=/meteor | |
# Install as root (otherwise node-gyp gets compiled as nobody) | |
USER root | |
WORKDIR $APP_DIR/bundle/programs/server/ | |
RUN apt-get update \ | |
&& apt-get install -y --no-install-recommends g++ build-essential python \ | |
&& apt-get clean \ |
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
/* global Peer */ | |
document.addEventListener('DOMContentLoaded', () => { | |
initiator(); | |
another(); | |
}, false); | |
// initiator side | |
const initiator = () => { | |
const peer = new Peer('initiatorId', { debug: 3 }); |
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 {EventBus} from "./eventBus"; | |
const sdk = VoxImplant.getInstance(); | |
// assign handlers | |
sdk.on(VoxImplant.Events.ConnectionEstablished, onConnectionEstablished); | |
sdk.on(VoxImplant.Events.ConnectionFailed, onConnectionFailed); | |
sdk.on(VoxImplant.Events.ConnectionClosed, onConnectionClosed); | |
sdk.on(VoxImplant.Events.AuthResult, onAuthResult); | |
sdk.on(VoxImplant.Events.IncomingCall, onIncomingCall); |
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 add-apt-repository ppa:certbot/certbot | |
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y | |
sudo apt-get install -y nginx && sudo apt-get install -y software-properties-common && sudo apt-get install -y python-certbot-nginx | |
sudo certbot --nginx |
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
upstream meteor { | |
hash $remote_addr; | |
server app1.example.com:3000 max_fails=2 fail_timeout=5s; | |
server app2.example.com:3000 max_fails=2 fail_timeout=5s; | |
} | |
server { | |
root /var/www/html; | |
index index.html index.htm index.nginx-debian.html; |
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
public static string ConvertPathToUrl(string path) | |
{ | |
string url; | |
if (path.StartsWith("/")) | |
{ | |
url = "file://" + path; | |
} | |
else if (path.StartsWith("file:///")) | |
{ | |
url = path; |