From 902bb0b8e1be6e0e8318b4b6e68db2d53b81d765 Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Tue, 19 Mar 2024 00:12:05 +0100 Subject: [PATCH] flake subdomain to redirect to me flake --- hosts/chmura/configuration.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/hosts/chmura/configuration.nix b/hosts/chmura/configuration.nix index d6c05969..da3a4596 100644 --- a/hosts/chmura/configuration.nix +++ b/hosts/chmura/configuration.nix @@ -31,7 +31,11 @@ in { extraGroups = [ "docker" ]; }; - services.caddy = { + services.caddy = let + redirToFlake = '' + redir https://git.jacekpoz.pl/jacekpoz/niksos + ''; + in { enable = true; virtualHosts."test.jacekpoz.pl".extraConfig = '' reverse_proxy * localhost:3001 @@ -40,6 +44,9 @@ in { root * /srv file_server ''; + + virtualHosts."flake.jacekpoz.pl".extraConfig = redirToFlake; + virtualHosts."flake.jpoz.pl".extraConfig = redirToFlake; }; virtualisation = {