Tech/OSS/DMS
Jump to navigation
Jump to search
https://github.com/anacrolix/dms
Packaged in Debian as https://packages.debian.org/bookworm/anacrolix-dms
Config File
Config file is rater undocumented so making notes from https://github.com/anacrolix/dms/blob/master/main.go
Path string IfName string Http string FriendlyName string DeviceIcon string LogHeaders bool FFprobeCachePath string NoTranscode bool ForceTranscodeTo string NoProbe bool StallEventSubscribe bool NotifyInterval time.Duration IgnoreHidden bool IgnoreUnreadable bool AllowedIpNets []*net.IPNet AllowDynamicStreams bool TranscodeLogPattern string
Attempt 1
I tried with some basics and found that the Path is not respected as there is logic later to set path to CWD
$ cat dms.conf
{
"Path": "/srv/",
"Http": ":8200",
"FriendlyName": "DMS Server",
"LogHeaders": true,
"FFprobeCachePath": "/home/lathama/.dms-ffprobe-cache"
}
Systemd
lathama@SGM-DEN-SRV-07:~/.config/systemd/user$ cat dms.service [Unit] Description=DMS UPnP Media Server [Service] ExecStart=/home/lathama/bin/dms -friendlyName DMS_Server -path /srv/ [Install] WantedBy=default.target lathama@SGM-DEN-SRV-07:~/.config/systemd/user$ pwd /home/lathama/.config/systemd/user