1
0
Fork 0

Auto-optimize store, website

This commit is contained in:
Jarkko Toivanen 2023-05-02 18:18:14 +03:00
parent 1aeb85e258
commit 71789fb33c
2 changed files with 16 additions and 1 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/cloudflare.token

View file

@ -35,6 +35,7 @@
};
};
nix.settings.auto-optimise-store = true;
nixpkgs.config.allowUnfree = true;
programs.iftop.enable = true;
programs.iotop.enable = true;
@ -77,9 +78,22 @@
apiTokenFile = "/home/jt/conf/cloudflare.token";
};
networking.firewall.enable = true;
# networking.firewall.allowedTCPPorts = [ ... ];
networking.firewall.allowedTCPPorts = [ 80 443 ];
# networking.firewall.allowedUDPPorts = [ ... ];
#security.acme.acceptTerms = true;
#security.acme.defaults.email = "";
services.nginx = {
enable = true;
virtualHosts = {
"leena.jakest.us" = {
addSSL = true;
#enableACME = true;
root = "/var/www/leena.jakest.us";
};
};
};
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave