From 0ad738fc6db4abf501be71a7ce0e9f5c8ed3a7c3 Mon Sep 17 00:00:00 2001 From: Joe Mou Date: Tue, 11 Aug 2026 08:24:21 -0400 Subject: Redirect fluffy-kitten to Cloudflare cgithub --- hostnix/elmo/cgithub.nix | 30 ++---------------------------- 1 file changed, 2 insertions(+), 28 deletions(-) diff --git a/hostnix/elmo/cgithub.nix b/hostnix/elmo/cgithub.nix index cae05c6..ec7c162 100644 --- a/hostnix/elmo/cgithub.nix +++ b/hostnix/elmo/cgithub.nix @@ -1,37 +1,11 @@ -{ pkgs, ... }: +{ ... }: { - systemd.tmpfiles.rules = [ - "d /opt/cgithub 0755 joe users" - ]; - - systemd.sockets.cgithub = { - wantedBy = [ "sockets.target" ]; - socketConfig = { - ListenStream = "/run/cgithub/socket"; - SocketGroup = "nginx"; - SocketMode = "0660"; - }; - }; - - systemd.services.cgithub = { - requires = [ "cgithub.socket" ]; - after = [ "cgithub.socket" ]; - serviceConfig = { - Type = "exec"; - DynamicUser = true; - WorkingDirectory = "/opt/cgithub"; - }; - script = '' - exec ${pkgs.nodejs-slim_24}/bin/node dist/build/index.js - ''; - }; - services.nginx.virtualHosts."fluffy-kitten.elmo.mou.fo" = { useACMEHost = "elmo.mou.fo"; forceSSL = true; locations."/" = { - proxyPass = "http://unix:/run/cgithub/socket"; + return = "301 https://cgithub.jmou.workers.dev$request_uri"; }; }; } -- cgit v1.3.1