diff options
author | lassulus <lass@aidsballs.de> | 2016-05-25 16:25:06 +0200 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2016-05-25 16:25:06 +0200 |
commit | e7f114ae090d6d2d0b9f11f03f58797feaef016a (patch) | |
tree | 1a5f978ed88d8bd6e65ebb9331edd0e7ce316eeb /lass/2configs/radio.nix | |
parent | 9a8cfe0c2183242d53207e597e9bbb3a7ba91b0b (diff) |
l 2 radio: add config for lassul.us/the_playlist
Diffstat (limited to 'lass/2configs/radio.nix')
-rw-r--r-- | lass/2configs/radio.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lass/2configs/radio.nix b/lass/2configs/radio.nix index 99a8c0859..2d1596e3d 100644 --- a/lass/2configs/radio.nix +++ b/lass/2configs/radio.nix @@ -165,4 +165,29 @@ in { }) ]; }; + krebs.nginx.servers."lassul.us".locations = let + html = pkgs.writeText "index.html" '' + <!DOCTYPE html> + <html lang="en"> + <head> + <meta charset="utf-8"> + <title>lassulus playlist</title> + </head> + <body> + <div style="display:inline-block;margin:0px;padding:0px;overflow:hidden"> + <iframe src="https://kiwiirc.com/client/irc.freenode.org/?nick=kiwi_test|?&theme=cli#the_playlist" frameborder="0" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;height:95%;width:100%;position:absolute;top:0px;left:0px;right:0px;bottom:0px" height="95%" width="100%"></iframe> + </div> + <div style="position:absolute;bottom:1px;display:inline-block;background-color:red;"> + <audio controls autoplay="autoplay"><source src="http://lassul.us:8000/radio.ogg" type="audio/ogg">Your browser does not support the audio element.</audio> + </div> + <!-- page content --> + </body> + </html> + ''; + in [ + (nameValuePair "/the_playlist" '' + default_type "text/html"; + alias ${html}; + '') + ]; } |