/media-server

Server Software of Tomorrows Mediathek (moved to codeberg.org)

Primary LanguageGoGNU Affero General Public License v3.0AGPL-3.0

media-server

pipeline status coverage report Go Report Card

This should become the Server of the OpenSource Mediathek and Streaming-Server.

For the Frontend, take a look here: media-ui

Compile

go get -v -u github.com/Kukoon/media-server

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.

For Developers

go run ./main.go

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