Moved caddy virtual host part to service file.
This commit is contained in:
parent
ae408e4d9d
commit
cdfa2a3a03
2 changed files with 6 additions and 8 deletions
|
|
@ -3,13 +3,6 @@
|
||||||
enable = config.niksos.server;
|
enable = config.niksos.server;
|
||||||
email = "jurnwubben@gmail.com";
|
email = "jurnwubben@gmail.com";
|
||||||
enableReload = false;
|
enableReload = false;
|
||||||
|
|
||||||
virtualHosts."share.jsw.tf" = {
|
|
||||||
serverAliases = ["www.share.jsw.tf"];
|
|
||||||
extraConfig = ''
|
|
||||||
reverse_proxy :9000
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [80 443];
|
networking.firewall.allowedTCPPorts = [80 443];
|
||||||
|
|
|
||||||
|
|
@ -17,5 +17,10 @@
|
||||||
StateDirectoryMode = "0750";
|
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