l radio: allow world to skip/like tracks
This commit is contained in:
parent
0382e74b12
commit
cd816fb427
@ -347,6 +347,19 @@ in {
|
|||||||
locations."= /recent".extraConfig = ''
|
locations."= /recent".extraConfig = ''
|
||||||
alias /tmp/played;
|
alias /tmp/played;
|
||||||
'';
|
'';
|
||||||
|
locations."= /current".extraConfig = ''
|
||||||
|
proxy_pass http://localhost:8001;
|
||||||
|
'';
|
||||||
|
locations."= /skip".extraConfig = ''
|
||||||
|
proxy_pass http://localhost:8001;
|
||||||
|
'';
|
||||||
|
locations."= /good".extraConfig = ''
|
||||||
|
proxy_pass http://localhost:8001;
|
||||||
|
'';
|
||||||
|
extraConfig = ''
|
||||||
|
add_header 'Access-Control-Allow-Origin' '*';
|
||||||
|
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
virtualHosts."lassul.us".locations."= /the_playlist".extraConfig = let
|
virtualHosts."lassul.us".locations."= /the_playlist".extraConfig = let
|
||||||
html = pkgs.writeText "index.html" ''
|
html = pkgs.writeText "index.html" ''
|
||||||
|
Loading…
Reference in New Issue
Block a user