Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI update #1

Open
wants to merge 101 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
101 commits
Select commit Hold shift + click to select a range
eb8d0de
add docker infrastructure
Jul 13, 2023
23caff6
fix html bugs - tags were forgotten
Jul 13, 2023
5f350f3
autoformating htmls
Jul 13, 2023
fefa6b8
more autoformating
Jul 13, 2023
f2feb39
settings ui update
Jul 13, 2023
9d0ef5d
Dev (#1)
AlexFreik Jul 17, 2023
12ca050
update formatting
Jul 17, 2023
8b10c9e
started working on control.html
Jul 18, 2023
f29dfb7
cleaning unused file
Jul 18, 2023
1e9eb85
start adding on/off status for control.html
Jul 18, 2023
8569c28
update styling of nav & buttons
Jul 19, 2023
16a4d6c
formating
Jul 19, 2023
394b255
match old config
Jul 19, 2023
ef8ee9e
ui improvements & refactoring
Jul 21, 2023
3ce52db
fix canvas
Jul 22, 2023
1e566ef
add statuses
Jul 22, 2023
c419613
update readme
Jul 22, 2023
fd05cf3
cleaning
Jul 22, 2023
a8fce96
Merge pull request #2 from AlexFreik/dev
AlexFreik Jul 22, 2023
db6a673
Update README.md
AlexFreik Jul 22, 2023
85d665b
Update README.md
AlexFreik Jul 22, 2023
908d7ad
control destination ui update
Jul 22, 2023
0e2908c
fix empty out streams bug
Jul 22, 2023
3494b3e
ui cleaning
Jul 22, 2023
552e713
rewrite scripts to use variable for stream and out number
Jul 24, 2023
8f09bbe
autoformate sh scripts
Jul 24, 2023
42f55a4
updating code to handle more outs & streams
Jul 25, 2023
7bc824e
updating html to handle more outs & streams
Jul 25, 2023
46aceba
bug fixing
Jul 28, 2023
f2109bf
bug fix
Jul 28, 2023
6c6358e
fix bug
Jul 28, 2023
6a9a0c9
fix bug
Jul 28, 2023
f3987cd
update style
Jul 28, 2023
4d2b802
fix bug
Jul 28, 2023
16ed2aa
bug fix: caches preventing fetching
AlexFreik Sep 29, 2023
da32541
seccond attempt to fix fetch bug
AlexFreik Sep 29, 2023
27a968a
third attempt to fix fetch bug
AlexFreik Sep 29, 2023
f9e7084
Remove custom names for outs
AlexFreik Oct 19, 2023
c1a916e
Merge pull request #3 from AlexFreik/dev2
AlexFreik Oct 21, 2023
617df29
Merge new stable dev (commit '27a968a55c7aea62c8579b12ba6fa64974bb32d0')
AlexFreik Oct 21, 2023
8ec3090
clean installation and fix update scripts
AlexFreik Oct 21, 2023
7b3e2e6
fix
AlexFreik Oct 21, 2023
9437c67
Merge branch 'master' into dev
AlexFreik Feb 2, 2024
4ecda51
New stable
AlexFreik Feb 2, 2024
95abd38
typo fixes
AlexFreik Feb 2, 2024
6df6e9e
clean old files
AlexFreik Feb 2, 2024
58e5e4f
add instagram logic
AlexFreik Feb 2, 2024
d48311c
bug fix
AlexFreik Feb 2, 2024
87126c3
bug fix
AlexFreik Feb 3, 2024
9a31a2c
bug fix
AlexFreik Feb 3, 2024
4b51e4f
config fix
AlexFreik Feb 3, 2024
4457be2
bug fix hopefully
AlexFreik Feb 3, 2024
7be5fbb
add scaling to 720
AlexFreik Feb 3, 2024
770748e
start adding tailwind, move prettier to root, switch from node to bun
AlexFreik Feb 19, 2024
7c1809d
finish control page tailwind update
AlexFreik Feb 20, 2024
806eb3f
start redesign of settings ui with tailwind
AlexFreik Feb 20, 2024
65dff05
finish settings page update
AlexFreik Feb 21, 2024
d89ffac
stream outs interface update
AlexFreik Feb 21, 2024
3141b56
remove instagram and fix typos
AlexFreik Feb 21, 2024
b750aa6
upd header generation
AlexFreik Feb 21, 2024
e1ade7e
change vertical logic
AlexFreik Feb 21, 2024
28b4468
bug fix
AlexFreik Feb 21, 2024
c074cb8
bug jsmpeg player fix
AlexFreik Feb 22, 2024
2d3f7fc
cleaning
AlexFreik Feb 22, 2024
60ad8b7
csv header bug fix
AlexFreik Feb 22, 2024
a1d6118
add stream statuses
AlexFreik Feb 22, 2024
4e07d5b
pretty update
AlexFreik Feb 22, 2024
8276f15
bug fix
AlexFreik Feb 22, 2024
21b1a17
fix
AlexFreik Feb 22, 2024
cae2b4b
upd
AlexFreik Feb 22, 2024
93b9974
vertical fix
AlexFreik Feb 22, 2024
1354c9e
add github navbar
AlexFreik Feb 22, 2024
7262b44
add collapse elem for other controls
AlexFreik Feb 22, 2024
9499302
style fix
AlexFreik Feb 22, 2024
9018891
style fix
AlexFreik Feb 22, 2024
aeb3509
improve style
AlexFreik Feb 22, 2024
7458a95
add tooltip with out url
AlexFreik Feb 23, 2024
06ba689
added bun config files
AlexFreik Feb 24, 2024
4d94023
upd ui
AlexFreik Feb 26, 2024
64eb09e
New stable version
AlexFreik Feb 27, 2024
57613b0
fix for loop...
AlexFreik Feb 29, 2024
110fe9e
Merge pull request #6 from AlexFreik/dev
AlexFreik Mar 5, 2024
f33bb8a
add bulk set feature
AlexFreik Mar 5, 2024
a167cbc
fix settings page
AlexFreik Mar 5, 2024
248dcef
enable 95 outs for all streams
AlexFreik Mar 6, 2024
50c4b46
bash bug fix (script wasn't running)
AlexFreik Jul 19, 2024
0fb88e8
remove bun
AlexFreik Jul 19, 2024
a995cad
fix bulk add bug
AlexFreik Jul 19, 2024
d9d61bb
refactoring
AlexFreik Jul 19, 2024
cd4f692
add statuses for backup & distribute
AlexFreik Jul 19, 2024
2e4ea08
do not change config files on every update
AlexFreik Jul 19, 2024
e62321a
upload gdrive video from settings
AlexFreik Jul 19, 2024
d528ddd
typo fix
AlexFreik Jul 19, 2024
7eb5953
gdrive upload bug fix
AlexFreik Jul 19, 2024
8ecfc48
add message on button click
AlexFreik Jul 19, 2024
847e30d
separated jsmpeg into new file, add batch input control
AlexFreik Jul 20, 2024
cea860f
bug fixes
AlexFreik Jul 20, 2024
678506b
bug fixes
AlexFreik Jul 20, 2024
1cf20b7
fix bulk outs set bug
AlexFreik Jul 20, 2024
e6970c6
Merge branch 'dev'
AlexFreik Jul 28, 2024
9d95120
Update README.md
AlexFreik Feb 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
npm-debug.log
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
package-lock.json
.DS_Store
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
jsmpeg.min.js
.git
output.css
20 changes: 20 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
printWidth: 100,
useTabs: true,
tabWidth: 4,
singleQuote: true,
semi: true,
trailingComma: 'all',
arrowParens: 'always',
bracketSameLine: true,
overrides: [
{
files: '*.html',

options: {
useTabs: false,
tabWidth: 2,
},
},
],
};
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"cSpell.words": ["Elem", "jsmpeg", "lowerthirds", "nofailover", "rtmp"]
}
25 changes: 25 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
.PHONY: *

pretty:
npx prettier --write .
shfmt -w .

install:
sudo ./setup-nginx-docker.sh

front:
npx nodemon server.js

run:
docker compose up

build:
docker compose build

exec:
docker exec -it nginx_server bash

dev: build run

css:
npx tailwindcss -i ./html/css/input.css -o ./html/css/output.css --watch
54 changes: 38 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,45 @@
> This repository has been moved to a different account:
> [https://github.com/isha-live/MLS](https://github.com/isha-live/MLS)
>
---

# NGINX Server

Default login/password for server is admin/nimda
The default login/password for the server is admin/nimda

## Need to install on Ubuntu 16.04

# Need to install on Ubuntu 16.04
Don't use Ubuntu minimal. Use the regular 16.04 image

#Steps to Install
1. On the terminal, type: cd ~ && sudo git clone git://github.com/regstuff/MLS.git && cd MLS && sudo ./install-nginx.sh
2. The install is automatic, except for the initial part where you need to choose your timezone for time and date configguration. (Note: Installation may take upto an hour on a single CPU instance)
3. Once installation is complete, on the terminal, type: sudo visudo
4. To the bottom of the file that opens up, add: www-data ALL=NOPASSWD: /bin/bash, /bin/ls
5. Ctrl+o to save the file, Ctrl+X to exit the notepad editor. This process is needed to give the NGINX server access to the shell scripting
6. If you want to allow uploading of lowerthirds from the settings page, on the terminal, type: sudo nano /etc/php/7.0/fpm/php.ini
7. Find the line ;file_uploads = On --> Usually around line 800. Ctrl+Shift+_ and type 800 to get there quick
8. Remove the semicolon in front of the line to uncomment it.
9. Ctrl+o to save the file, Ctrl+X to exit the notepad editor.
10. Optional additional step: By default, all server logs are cleared on instance boot. This will ensure hardisk space isn't consumed too much. If you wish, you can retain them. On the terminal, type: sudo nano /etc/init.d/nginxrestart.sh
11. In the editor, comment the line (Add # before it): sudo rm /usr/local/nginx/logs/*.log
12. Ctrl+o to save the file, Ctrl+X to exit the notepad editor.
13. Installation is complete
## Steps to Install

1. On the terminal, type:
The installation is automatic, except for the initial part where you need to choose your timezone for time and date configuration.
Note: Installation may take up to an hour on a single CPU instance.
1. Once installation is complete, on the terminal, type: `sudo visudo`
1. To the bottom of the file that opens up, add: `www-data ALL=NOPASSWD: /bin/bash, /bin/ls`
1. `Ctrl+o` to save the file, `Ctrl+X` to exit the notepad editor. This process is needed to give the `NGINX` server access to the shell scripting.

## Steps to Update

There is no need to install large libraries if you want to just update the source code. In this case, you can run:

```sh
sudo ./update-mls.sh
```

### Uploading Lowerthirds From The Settings

1. If you want to allow uploading of lowerthirds from the settings page, on the terminal, `type: sudo nano /etc/php/7.0/fpm/php.ini`
1. Find the line `;file_uploads = On` –> Usually around line 800. `Ctrl+Shift+_` and type 800 to get there quickly.
1. Remove the semicolon in front of the line to uncomment it.
1. `Ctrl+o` to save the file, `Ctrl+X` to exit the notepad editor.

### Optional additional step:

By default, all server logs are cleared on instance boot. This will ensure hardisk space isn't consumed too much. If you wish, you can retain them.

1. On the terminal, type: `sudo nano /etc/init.d/nginxrestart.sh`
1. In the editor, comment on the line (Add # before it): `sudo rm /usr/local/nginx/logs/*.log`
1. `Ctrl+o` to save the file, `Ctrl+X` to exit the notepad editor.
1. Installation is complete!
28 changes: 28 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: '3'

services:
nginx:
image: alfg/nginx-rtmp:v1.6.0
container_name: 'nginx-mls'
ports:
- 8080:80
- 1935:1935
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf.template
- .:/app
depends_on:
- php
networks:
- internal

php:
image: php:7.0-fpm-alpine
container_name: 'php-mls'
volumes:
- .:/app
networks:
- internal

networks:
internal:
driver: bridge
14 changes: 14 additions & 0 deletions generate-config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

truncate -s 0 blank.txt

STREAM_NUM=$1
OUT_NUM=$2

for ((i = 1; i <= STREAM_NUM; i++)); do
for ((j = 1; j <= OUT_NUM; j++)); do
output="__stream${i}__out${j}__"
echo $output >>blank.txt
done
echo "" >>blank.txt
done
74 changes: 0 additions & 74 deletions html/1.php

This file was deleted.

36 changes: 20 additions & 16 deletions html/50x.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<title>Error</title>
<style>
body {
<head>
<title>Error</title>
<style>
body {
width: 35em;
margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif;
}
</style>
</head>
<body>
<h1>An error occurred.</h1>
<p>Sorry, the page you are looking for is currently unavailable.<br/>
Please try again later.</p>
<p>If you are the system administrator of this resource then you should check
the <a href="http://nginx.org/r/error_log">error log</a> for details.</p>
<p><em>Faithfully yours, nginx.</em></p>
</body>
}
</style>
</head>
<body>
<h1>An error occurred.</h1>
<p>
Sorry, the page you are looking for is currently unavailable.<br />
Please try again later.
</p>
<p>
If you are the system administrator of this resource then you should check the
<a href="http://nginx.org/r/error_log">error log</a> for details.
</p>
<p><em>Faithfully yours, nginx.</em></p>
</body>
</html>
Loading