feat(tanzanite): nginx configuration for website
This commit is contained in:
parent
38c9117551
commit
59ad109068
1 changed files with 14 additions and 0 deletions
|
@ -17,6 +17,7 @@ in {
|
|||
data-root = "/opt/data";
|
||||
};
|
||||
};
|
||||
|
||||
security.acme = {
|
||||
acceptTerms = true;
|
||||
defaults.email = "stitchy@stitchy.moe";
|
||||
|
@ -26,9 +27,22 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
recommendedProxySettings = true;
|
||||
recommendedTlsSettings = true;
|
||||
virtualHosts = {
|
||||
"stitchy.moe" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
root = "/opt/www/stitchy.moe/public";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [ 22 80 222 443 ];
|
||||
};
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
|
|
Loading…
Reference in a new issue