diff --git a/flake.lock b/flake.lock index 0349a35..ea025ea 100644 --- a/flake.lock +++ b/flake.lock @@ -172,11 +172,11 @@ "radio-web": { "flake": false, "locked": { - "lastModified": 1629918655, - "narHash": "sha256-sDVM1K1r2y4T37tvdu3mtjiswJ7/PrVGsDQrHzrNfac=", + "lastModified": 1652121792, + "narHash": "sha256-j1Y9MAjUVNgyFSeGzPoqibAnEysJDjZSXukVfQ7+bsQ=", "ref": "master", - "rev": "585ce4e3d09d1618d61358902a4231e91e15e1de", - "revCount": 4, + "rev": "72e7a9e80b780c84ed8d4a6374bfbb242701f900", + "revCount": 5, "type": "git", "url": "https://git.neet.dev/zuckerberg/radio-web.git" }, diff --git a/machines/ponyo/configuration.nix b/machines/ponyo/configuration.nix index 038e127..61a9d68 100644 --- a/machines/ponyo/configuration.nix +++ b/machines/ponyo/configuration.nix @@ -58,14 +58,14 @@ containers.vpn = mkVpnContainer pkgs "/dev/null" { services.radio = { enable = true; - host = "radio.neet.space"; + host = "radio.runyan.org"; }; }; # containers cannot unlock their own secrets right now. unlock it here age.secrets."pia-login.conf".file = ../../secrets/pia-login.conf; # icecast endpoint + website - services.nginx.virtualHosts."radio.neet.space" = { + services.nginx.virtualHosts."radio.runyan.org" = { enableACME = true; forceSSL = true; locations = { @@ -160,6 +160,15 @@ root = "/var/www/tmp"; }; + # redirect to github + services.nginx.virtualHosts."runyan.org" = { + enableACME = true; + forceSSL = true; + extraConfig = '' + rewrite ^/(.*)$ https://github.com/GoogleBot42 redirect; + ''; + }; + security.acme.acceptTerms = true; security.acme.email = "zuckerberg@neet.dev"; } \ No newline at end of file