Moved caddy virtual host part to service file.
This commit is contained in:
parent
679be52764
commit
c3bc0cc509
2 changed files with 6 additions and 8 deletions
|
|
@ -3,13 +3,6 @@
|
|||
enable = config.niksos.server;
|
||||
email = "jurnwubben@gmail.com";
|
||||
enableReload = false;
|
||||
|
||||
virtualHosts."share.jsw.tf" = {
|
||||
serverAliases = ["www.share.jsw.tf"];
|
||||
extraConfig = ''
|
||||
reverse_proxy :9000
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [80 443];
|
||||
|
|
|
|||
|
|
@ -17,5 +17,10 @@
|
|||
StateDirectoryMode = "0750";
|
||||
};
|
||||
|
||||
#TODO: caddy
|
||||
services.caddy.virtualHosts."share.jsw.tf" = {
|
||||
serverAliases = ["www.share.jsw.tf"];
|
||||
extraConfig = ''
|
||||
reverse_proxy :9000
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue