mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-06-08 18:09:06 +02:00
Add a 404 page
This commit is contained in:
parent
48be1d78ea
commit
f66f54312f
3 changed files with 80 additions and 1 deletions
|
@ -1,7 +1,8 @@
|
|||
{ lib, pkgs, config, ... }:
|
||||
with lib;
|
||||
let cfg = config.luj.nginx;
|
||||
in {
|
||||
in
|
||||
{
|
||||
|
||||
options.luj.nginx = {
|
||||
enable = mkEnableOption "activate nginx service";
|
||||
|
@ -30,5 +31,15 @@ in {
|
|||
'';
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."404.julienmalka.me" = {
|
||||
default = true;
|
||||
locations."/" = {
|
||||
root = "${./404}";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue