Working networking on kernighan, with nginx
This commit is contained in:
parent
1de3ef1060
commit
4028e24be3
|
@ -11,6 +11,10 @@
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "kernighan";
|
hostName = "kernighan";
|
||||||
|
firewall = {
|
||||||
|
enable = true;
|
||||||
|
allowedTCPPorts = [ 80 443 ];
|
||||||
|
};
|
||||||
interfaces = {
|
interfaces = {
|
||||||
end0.ipv4.addresses = [{
|
end0.ipv4.addresses = [{
|
||||||
address = "192.168.40.25";
|
address = "192.168.40.25";
|
||||||
|
@ -22,7 +26,8 @@
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
defaultGateway = "192.168.40.1";
|
defaultGateway = "192.168.40.1";
|
||||||
defaultGateway6 = "00:b8:c2:db:b8:57";
|
defaultGateway6.address = "fe80::00:b8:c2:db:b8:57";
|
||||||
|
defaultGateway6.interface = "end0";
|
||||||
nameservers = [ "208.67.222.222" "208.67.220.220" ];
|
nameservers = [ "208.67.222.222" "208.67.220.220" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -3,17 +3,23 @@
|
||||||
{
|
{
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
recommendedGzipSettings = true;
|
||||||
|
recommendedOptimisation = true;
|
||||||
|
recommendedProxySettings = true;
|
||||||
|
recommendedTlsSettings = true;
|
||||||
|
|
||||||
virtualHosts."test.tsvallender.co.uk" = {
|
virtualHosts."test.tsvallender.co.uk" = {
|
||||||
#forceSSL = true;
|
forceSSL = true;
|
||||||
#enableACME = true;
|
enableACME = true;
|
||||||
root = "/var/www/tsvallender.co.uk";
|
root = "/var/www/tsvallender.co.uk";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
# security.acme = {
|
security.acme = {
|
||||||
# acceptTerms = true;
|
acceptTerms = true;
|
||||||
# defaults = {
|
defaults = {
|
||||||
# email = "t+acme@tsvallender.co.uk";
|
email = "t+acme@tsvallender.co.uk";
|
||||||
# };
|
};
|
||||||
# };
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue