Giter Site home page Giter Site logo

apikon's Introduction

apikon

Random chat-roulette based on nodejs

Demo

https://rouletka.ru

 
sudo apt-get install curl
curl -sL https://deb.nodesource.com/setup_20.x | sudo bash -
sudo apt-get install -y nodejs
git clone https://github.com/Globik/apikon
cd apikon
npm install
https://losst.pro/ustanovka-mariadb-v-ubuntu-18-04
sudo apt -y install mariadb-server mariadb-client
sudo systemctl status mariadb
sudo mysql_secure_installation
sudo mysql -u root -p
CREATE DATABASE roulet;
CREATE USER 'roulet' IDENTIFIED BY 'roulet';
GRANT ALL ON *.* TO 'roulet'@localhost IDENTIFIED BY 'roulet';
SHOW DATABASES;
use roulet;
\q
sudo systemctl status nginx 
sudo systemctl stop nginx 
node app
docker container ls -a
docker stop my_container
screen [ENTER]
node app
or
npm install pm2 -g
cd apikon
pm2 start app.js
or
pm2 restart app.js


docker stop mariadb
mariadb
root@irclfyscdg:~# docker stop app-rouletws-1 
app-rouletws-1
root@irclfyscdg:~# docker stop app-rouletauth-1

Coturn configuration

 listening-port=3479
 tls-listening-port=5348
 listening-ip=45.12.18.172
 relay-ip=45.12.18.172
 fingerprint
 lt-cred-mech
 user=alik:1234
 realm=rouletka.ru
 cert=/etc/letsencrypt/live/rouletka.ru/fullchain.pem
 pkey=/etc/letsencrypt/live/rouletka.ru/privkey.pem
 no-stdout-log
 cli-password=qwerty

Allow ports listen

sudo ufw allow 5348/tcp
sudo ufw allow 5348/udp

sudo ufw allow 3479/udp
sudo ufw allow 3479/tcp

webrtc javascript addresses


 {
	"iceServers":[
	{
      "urls": "stun:stun.l.google.com:19302"
    },
	{
		"urls":[
		"stun:rouletka.ru:3479",
		"stun:rouletka.ru:5348"
		]
		//stun:45.12.18.172:5348
		},
	{urls:[
	"turn:rouletka.ru:3479?transport=udp",
	//turn:45.12.18.172:3479
	//turn:45.12.18.172:5348
		"turn:rouletka.ru:3479?transport=tcp", 
		"turn:rouletka.ru:5348?transport=udp",
		"turn:rouletka.ru:5348?transport=tcp" //no stun
		]
		,username:"alik",credential:"1234"}]};

apikon's People

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.