summaryrefslogtreecommitdiffstats
path: root/lass/2configs/radio/container-host.nix
diff options
context:
space:
mode:
authorlassulus <git@lassul.us>2023-02-21 10:10:53 +0100
committerlassulus <git@lassul.us>2023-02-21 10:10:53 +0100
commit5bab00f73d27a96f6ce319040b69e4d83a81e52a (patch)
tree5fe51f9ba61a3c5192ef050435875f9366f98a0b /lass/2configs/radio/container-host.nix
parentad1b92ed9a85c11d522305defc77ff4c6929acad (diff)
l radio: move to 2/services
Diffstat (limited to 'lass/2configs/radio/container-host.nix')
-rw-r--r--lass/2configs/radio/container-host.nix23
1 files changed, 0 insertions, 23 deletions
diff --git a/lass/2configs/radio/container-host.nix b/lass/2configs/radio/container-host.nix
deleted file mode 100644
index de0ea9afe..000000000
--- a/lass/2configs/radio/container-host.nix
+++ /dev/null
@@ -1,23 +0,0 @@
-{ config, pkgs, ... }:
-{
- krebs.sync-containers3.containers.radio = {
- sshKey = "${toString <secrets>}/radio.sync.key";
- };
- containers.radio = {
- bindMounts."/var/music" = {
- hostPath = "/var/music";
- isReadOnly = false;
- };
- };
- krebs.iptables.tables.filter.INPUT.rules = [
- { predicate = "-p tcp --dport 8000"; target = "ACCEPT"; }
- ];
- krebs.htgen.radio-redirect = {
- port = 8000;
- scriptFile = pkgs.writers.writeDash "redir" ''
- printf 'HTTP/1.1 301 Moved Permanently\r\n'
- printf "Location: http://radio.lassul.us''${Request_URI}\r\n"
- printf '\r\n'
- '';
- };
-}