diff options
author | lassulus <lassulus@lassul.us> | 2021-07-05 14:47:29 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2021-07-05 14:47:29 +0200 |
commit | cd816fb427e977927aa34c8e7897d64248d3a660 (patch) | |
tree | 9e007c3635bfacdaf9976d05593e5c239e5afa26 /lass | |
parent | 0382e74b1264773c5598279254a92cc78b2e1576 (diff) |
l radio: allow world to skip/like tracks
Diffstat (limited to 'lass')
-rw-r--r-- | lass/2configs/radio.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lass/2configs/radio.nix b/lass/2configs/radio.nix index 2c539917a..b1e1ed4d9 100644 --- a/lass/2configs/radio.nix +++ b/lass/2configs/radio.nix @@ -347,6 +347,19 @@ in { locations."= /recent".extraConfig = '' 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 html = pkgs.writeText "index.html" '' |