Open Streaming Platform config prototype.

This commit is contained in:
Alexey Skobkin 2020-04-15 22:17:06 +03:00
parent 356f52e560
commit e798dc51ee
No known key found for this signature in database
GPG Key ID: 5D5CEF6F221278E7
7 changed files with 71 additions and 0 deletions

View File

@ -34,6 +34,7 @@ Not every stack is tested to fully work.
- [ ] mariadb-common (prototype state)
- [ ] mastodon (didn't work when tried to set up)
- [x] Murmur (Mumble server)
- [ ] Open Streaming Platform (prototype)
- [x] OpenVPN
- [ ] Postgres Common (prototype state)
- [x] Proxy MTProto

View File

@ -0,0 +1,12 @@
# Container variables
DB_URL=sqlite:///db/database.db
FLASK_SECRET=CHANGE_ME
FLASK_SALT=CHANGE_ME
OSP_ALLOWREGISTRATION=False
OSP_REQUIREVERIFICATION=False
TZ=Europe/Moscow
# Volumes
STORAGE_DIR=./storage
DATABASE_DIR=./database
NGINX_DIR=./nginx

View File

@ -0,0 +1,2 @@
*
!.gitignore

View File

@ -0,0 +1,24 @@
# https://gitlab.com/Deamos/flask-nginx-rtmp-manager/-/blob/master/docker-compose.yml
version: '3.4'
services:
redis:
image: redis
container_name: ospredis
expose:
- 6379
app:
image: deamos/openstreamingplatform
restart: always
ports:
- '1935:1935'
- 'localhost:8585:80'
- 'localhost:8553:443'
environment:
- REDIS_HOST="ospredis"
- REDIS_PORT=6379
- REDIS_PASSWORD=""
env_file: .env
volumes:
- "${STORAGE_DIR}:/var/www"
- "${DATABASE_DIR}:/opt/osp/db"
- "${NGINX_DIR}:/usr/local/nginx/conf"

View File

@ -0,0 +1,28 @@
server {
listen 443 ssl http2;
server_name osp.server.tld;
#access_log /var/log/nginx/osp.server.tld.access.gz main buffer=16k gzip=9 flush=5m;
error_log /var/log/nginx/osp.server.tld.error;
charset utf-8;
auth_basic "Authentication needed";
auth_basic_user_file /var/www/osp.server.tld/.htpasswd;
location / {
proxy_pass http://127.0.0.1:8585;
}
#include config/gzip.conf;
# Wildcard certificate config
#include ssl/server.tld.conf;
#include config/ssl.conf;
}
server {
listen 80;
server_name osp.server.tld;
return 301 https://osp.server.tld$request_uri;
}

View File

@ -0,0 +1,2 @@
*
!.gitignore

View File

@ -0,0 +1,2 @@
*
!.gitignore