archetypes | ||
content/posts | ||
.envrc | ||
.gitignore | ||
.gitlab-ci.yml | ||
config.toml | ||
flake.lock | ||
flake.nix | ||
README.md |
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;
};
};
}
Test