forked from poz/niksos
flake subdomain to redirect to me flake
This commit is contained in:
parent
19e1c3b9c7
commit
902bb0b8e1
1 changed files with 8 additions and 1 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue