media-server
This should become the Server of the OpenSource Mediathek and Streaming-Server.
For the Frontend, take a look here: media-ui
Configuration
Copy config_example.toml to config.toml and take a look there.
Pre-requierements
-
PostgreSQL - Database (or cockroachdb)
For Testing we use a database called media_server with user root, take a look in CI-Scripts
Startup
Everything is controlled by the config.toml. A database migration happens on every startup if necessary.
In Production
Create systemd.service file under: /etc/systemd/system/media-server.service
[Unit]
Description = media-server
[Service]
Type=simple
User=mediaserver
ExecStart=/usr/local/bin/media-server -c /etc/media-server.conf
Restart=always
RestartSec=5s
Environment=PATH=/usr/bin:/usr/local/bin
[Install]
WantedBy=multi-user.target
Store in media-server.service given path: - config file - binary
Enable service on Startup of service and start now:
systemctl enable --now media-server.service