blog/README.md
2023-08-17 19:07:55 +02:00

456 B

Deploying to nginx webserver

Adapted from AveryanAlex's blog

{
  inputs.blog.url = "git+https://git.krsnik.at/Kristian/blog"
}

Setup nginx virtualHost to serve your site:

{ inputs, pkgs, ... }:
{
  services.nginx.virtualHosts."blog.krsnik.at" = {
    root = inputs.packages.default.${pkgs.hostPlatform.system};
    ssl = {
      enableACME = true;
      forceSSL = true;
    };
  };
}