You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Mustafa Yontar 767ca31057 fix fix 1 year ago
mainapp inital 2 years ago
.gitignore gitignore change, 1 year ago
README.md readme change and service file wsgi file add 2 years ago
app.py fix fix 1 year ago
example.service readme change and service file wsgi file add 2 years ago
forward_stream.py fix fix 1 year ago
requirements.txt inital 2 years ago
wsgi.py .app to app 2 years ago

README.md

Albatross Backend, we called a Thoth

Requirements

  • Please ensure ffmpeg installed version 4.0 and above
  • Python 3.7 and above
  • mongodb 4.0 and above

Installing For Development

pip install -r requirements.txt

after then everything is success you can set a environ parameters for janus and mongodb

export JWT_SECRET_KEY=CHANGE_ME

export JANUS_URL=http:/changeme

export JANUS_ADMIN_KEY=CHANGE_ME

export MONGODB_URL=mongodb://server/db

now you can run a development server.

python app.py

also you can run without global export like a :

JWT_SECRET_KEY=CHANGE_ME JANUS_URL=http:/changeme export JANUS_ADMIN_KEY=CHANGE_ME MONGODB_URL=mongodb://server/db python app.py

Installing For Production

Create a virtual env

cd albatrosfolder

python -m venv .venv

activate a virtual env

source .venv/bin/activate

after then install requirements

pip install -r requirements.txt

install a gunicorn

pip install gunicorn

change example.service file for your environment

after then, copy service file to systemd folder

sudo cp example.service /etc/systemd/system/albatorss.service

sudo systemctl start albatorss

sudo systemctl enable albatorss