feat(luna): add blog
TODO: Use the blog as a flake input to auto update it with the new articles
This commit is contained in:
parent
261d239597
commit
6bd8593220
@ -1,4 +1,7 @@
|
|||||||
{ config, ... }:
|
{ config, specialArgs, ... }:
|
||||||
|
let
|
||||||
|
blog-host = "blog.orion-technologies.io";
|
||||||
|
in
|
||||||
{
|
{
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -11,4 +14,17 @@
|
|||||||
acceptTerms = true;
|
acceptTerms = true;
|
||||||
defaults.email = "price@orion-technologies.io";
|
defaults.email = "price@orion-technologies.io";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.persistence."${specialArgs.persist-dir}" = {
|
||||||
|
directories = [
|
||||||
|
"/var/www/${blog-host}"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
services.nginx.virtualHosts."${blog-host}" = {
|
||||||
|
addSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
root = "/var/www/${blog-host}";
|
||||||
|
locations."/".index = "home.html";
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user