add http basic auth so only i can listen
This commit is contained in:
parent
9dc093e320
commit
8f20c3012a
|
@ -10,6 +10,7 @@
|
|||
permissions = [ "read" "add" "control" "admin" ];
|
||||
}];
|
||||
extraConfig = ''
|
||||
host_permissions "127.0.0.1 read,add,control,admin"
|
||||
samplerate_converter "1"
|
||||
audio_output_format "44100:16:2"
|
||||
audio_output {
|
||||
|
@ -25,12 +26,20 @@
|
|||
'';
|
||||
};
|
||||
|
||||
systemd.services.mpd.serviceConfig.StateDirectory = ["/mpd"];
|
||||
systemd.services.mpd.serviceConfig.StateDirectory = [ "/mpd" ];
|
||||
|
||||
services.nginx.virtualHosts."stream.owo.monster" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations = { "/".proxyPass = "http://127.0.0.1:8012"; };
|
||||
locations = {
|
||||
"/" = {
|
||||
proxyPass = "http://127.0.0.1:8012";
|
||||
extraConfig = ''
|
||||
auth_basic "Music Password";
|
||||
auth_basic_user_file /secrets/music-stream-passwd;
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 6600 ];
|
||||
|
|
Loading…
Reference in a new issue