media-server

command module
v0.2.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2022 License: AGPL-3.0 Imports: 18 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
web

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL