Skip to content

Instantly share code, notes, and snippets.

@pta2002

pta2002/site.nix Secret

Created November 8, 2020 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pta2002/0cca332d919a7fc55239e1daac1c97be to your computer and use it in GitHub Desktop.
Save pta2002/0cca332d919a7fc55239e1daac1c97be to your computer and use it in GitHub Desktop.
{ pkgs, ... }:
{
networking.firewall.allowedTCPPorts = [ 443 80 ];
security.acme.acceptTerms = true;
security.acme.email = "pta2002@pta2002.com";
services.nginx = {
enable = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
virtualHosts."pta2002.com" = {
serverAliases = [ "www.pta2002.com" ];
enableACME = true;
forceSSL = true;
serverName = "pta2002.com";
root = (import ../blog/default.nix {});
};
};
imports = [
../tinysites/sites.nix
];
}
{ config, pkgs, ... }:
{
services.nginx.virtualHosts = {
"bucketlist.pta2002.com" = {
root = (import ./bucketlist {});
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment