Code Monkey home page Code Monkey logo

kiavu's Introduction

kiavu

streaming server config

mettre en place un serveur de streaming

access a un serveur

hetzner (payer par heure !)

serveur dedie'

  • hetzner.com/sb -- liste de enchères serveur dédié
  • robot.hetzner.com

ou un VPS (virtual private server)

Utiliser l'interface web d'Hetzner pour installer cette machine avec un linux 'Debian 12'

ansible pour installer/configurer ce serveur

Une fois que hetzner nous donne access a une machine (mdp via email) et publie l'adresse IP (ipv4) on est pret à la configurer avec un playbook 'ansible'

 apt install ansible 
 apt install sshpass  # needed for password based auth

 cd /mnt/d/.../myplaybook 

 ansible-playbook -i inventory install_vps.yml

or with password auth:

 ansible-playbook -i inventory install_vps.yml -k

sur le workstation developeur

en meme temps (tant que c'est pas automatise' -- (*) ) on ajoute une entree DNS pour l'ip (afin de pouvoir generer un certificat par LetsEncrypt par la commande 'certbot')

 certbot  --nginx -d stream.l45.be
 
 nano /etc/nginx/nginx.conf 
 
 listen 443 ssl;
 
  systemctl restart nginx

(*) https://docs.gandi.net/en/managing_an_organization/organizations/personal_access_token.html https://docs.ansible.com/ansible/latest/collections/community/general/gandi_livedns_module.html

a regarder:

  • ajout du record dns automatiqe ?
  • ajouter l'authentication ? (OBS peux authentifier une connection stream)
  • interpreter les logs du nginx pour avoir une idee du nombre du public

preparer OBS pour envoyer un stream live

pointer OBS sur rtmp://stream.L45.be/ingest avec la cle' 'kievu' (sans authentication)

Interface video

Sur le site de diffusion, intégrer la balise video et le sript JS :"hls.js" (*) , la source du serveur video est donné dans le script js intégré à la page. Exemple : hls.loadSource('https://stream.l45.be/hls/kievu.m3u8');

(*) https://github.com/video-dev/hls.js/

kiavu's People

Contributors

ptrhere avatar

Watchers

 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.