flake subdomain to redirect to me flake

This commit is contained in:
jacekpoz 2024-03-19 00:12:05 +01:00
parent 19e1c3b9c7
commit 902bb0b8e1
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -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 = {