pipebert: add mopidy
This commit is contained in:
parent
18d38da852
commit
cf47bf50f7
|
@ -1,4 +1,4 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -46,6 +46,27 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
mopidy = {
|
||||||
|
enable = true;
|
||||||
|
configuration = ''
|
||||||
|
[audio]
|
||||||
|
output = pulsesink server=127.0.0.1
|
||||||
|
|
||||||
|
[core]
|
||||||
|
restore_state = true
|
||||||
|
|
||||||
|
[http]
|
||||||
|
allowed_origins =
|
||||||
|
cristianpb.github.io
|
||||||
|
mopster.urizen.pl
|
||||||
|
|
||||||
|
[youtube]
|
||||||
|
allow_cache = true
|
||||||
|
youtube_dl_package = yt_dlp
|
||||||
|
'';
|
||||||
|
extensionPackages = with pkgs; [ mopidy-muse mopidy-youtube python3Packages.yt-dlp ];
|
||||||
|
};
|
||||||
|
|
||||||
nginx = {
|
nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
|
@ -79,9 +100,30 @@
|
||||||
"pipebert.hq.c3d2.de" = {
|
"pipebert.hq.c3d2.de" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
locations."/" = {
|
locations = {
|
||||||
proxyPass = "http://127.0.0.1:8888";
|
"/" = {
|
||||||
proxyWebsockets = true;
|
extraConfig = ''
|
||||||
|
add_header Content-Type text/html;
|
||||||
|
'';
|
||||||
|
return = ''200 '<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<body>
|
||||||
|
<ul>
|
||||||
|
<li><a href="/ledfx">LEDfx</li></a>
|
||||||
|
<li><a href="/mopidy/muse">Mopidy</li></a>
|
||||||
|
<li><a href="/mopidy/youtube">Mopidy - Add YouTube link</li></a>
|
||||||
|
</ul>
|
||||||
|
</body>
|
||||||
|
</html>' '';
|
||||||
|
};
|
||||||
|
"/mopidy/" = {
|
||||||
|
proxyPass = "http://127.0.0.1:6680";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
|
"/ledfx/" = {
|
||||||
|
proxyPass = "http://127.0.0.1:8888";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user