{"id":13907818,"url":"https://github.com/leandromoreira/nott","last_synced_at":"2025-10-04T00:31:33.978Z","repository":{"id":141425717,"uuid":"254975717","full_name":"leandromoreira/nott","owner":"leandromoreira","description":"The New OTT Platform - an excuse to discuss and design a simple edge computing platform","archived":false,"fork":false,"pushed_at":"2020-07-04T14:09:08.000Z","size":343,"stargazers_count":51,"open_issues_count":0,"forks_count":10,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-06-04T23:01:29.388Z","etag":null,"topics":["docker","edge-computing","ffmpeg","hls","live-streaming","luajit","nginx","nginx-rtmp","openresty","ott","platform","video"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leandromoreira.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-11T23:48:03.000Z","updated_at":"2025-03-21T16:09:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"85e48167-2000-4f75-8fad-59c7fbd85e33","html_url":"https://github.com/leandromoreira/nott","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/leandromoreira/nott","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leandromoreira%2Fnott","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leandromoreira%2Fnott/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leandromoreira%2Fnott/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leandromoreira%2Fnott/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leandromoreira","download_url":"https://codeload.github.com/leandromoreira/nott/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leandromoreira%2Fnott/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278249326,"owners_count":25955834,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-03T02:00:06.070Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","edge-computing","ffmpeg","hls","live-streaming","luajit","nginx","nginx-rtmp","openresty","ott","platform","video"],"created_at":"2024-08-06T23:02:11.501Z","updated_at":"2025-10-04T00:31:33.717Z","avatar_url":"https://github.com/leandromoreira.png","language":"Lua","funding_links":[],"categories":["HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"[![Build Status](https://travis-ci.org/leandromoreira/nott.svg?branch=master)](https://travis-ci.org/leandromoreira/nott) [![license](https://img.shields.io/badge/license-BSD--3--Clause-blue.svg)](https://img.shields.io/badge/license-BSD--3--Clause-blue.svg)\n\n# NOTT - New OTT\n\nIn the three-post series, we’re going to build:\n*  a simple [**video platform**](https://leandromoreira.com/2020/04/19/building-an-open-source-ott-platform/) using open-source software (nginx-rtmp, ffmpeg, nginx)\n* add [code](https://leandromoreira.com/2020/04/19/empowering-nginx-with-lua-code/) on the front end (lua)\n* design a platform that will enable to [**add code dynamically**](https://leandromoreira.com/2020/04/19/building-an-edge-computing-platform/) (redis cluster)\n\n# Architecture\n\n![an overview of the NOTT project](/img/ott_overview.png \"an overview of the NOTT project\")\n\n# How to use it\n\n```bash\n# make sure you're using MacOS\ngit clone https://github.com/leandromoreira/nott.git\ncd nott\nmake run\n\n# wait until the platform is up and running\n# and run the video generator in another tab\nmake broadcast_tvshow\n\n# ^ for linux users, you might need to use --network=host \n# and your IP instead of this docker.for.mac.host.internal\n# for windows user I dunno =(\n# but you can use OBS and point to your own machine\n\n# open your browser and point it to http://localhost:8080/app\n\n# in a different tab - you can test the stream\nhttp http://localhost:8080/hls/colorbar.m3u8\n\n# in another tab - let's add CU to redis\n# -- first need to discovery the redis cluster id\ndocker ps | grep redis\n\n# -- then let's connect to the redis cluster\ndocker exec -it f44ed71b3056 redis-cli -c -p 7000\n# inside redis-cluster let's add the CU\nset authentication \"rewrite||local token = ngx.var.arg_token or ngx.var.cookie_superstition \\n if token ~= 'token' then \\n return ngx.exit(ngx.HTTP_FORBIDDEN) \\n else \\n ngx.header['Set-Cookie'] = {'superstition=token'} \\n end\"\nsadd coding_units authentication\n\n# go back and test the stream response - you should eventually (after max 20s)\n# receive 403 as response\nhttp http://localhost:8080/hls/colorbar.m3u8\n\n# add the token and it'll work again\nhttp http://localhost:8080/hls/colorbar.m3u8?token=token\n```\n\n# UI\n\n![NOTT's UI](/img/nott_view.png \"NOTT's UI\")\n\n# TODOs\n\n- [ ] - Admin\n- [ ] - Add Vod (NGINX-based MP4 Repackager)\n- [ ] - Add Nginx::Tests\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleandromoreira%2Fnott","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleandromoreira%2Fnott","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleandromoreira%2Fnott/lists"}