2023-12-17 17:25:24 +03:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
let cfg = config.my.roles.server.slides-ivabus-dev;
|
|
|
|
in {
|
|
|
|
options.my.roles.server.slides-ivabus-dev.enable =
|
|
|
|
lib.mkEnableOption "Serve slides.ivabus.dev";
|
|
|
|
config = lib.mkIf (cfg.enable) {
|
|
|
|
my.roles.server.nginx.enable = true;
|
|
|
|
services.nginx = {
|
|
|
|
virtualHosts."slides.ivabus.dev" = {
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
2024-04-21 10:51:14 +03:00
|
|
|
quic = true;
|
2023-12-17 17:25:24 +03:00
|
|
|
http3 = true;
|
|
|
|
|
|
|
|
root = pkgs.callPackage ../../pkgs/slides-ivabus-dev.nix { };
|
|
|
|
|
|
|
|
extraConfig = ''
|
|
|
|
error_page 404 /404.html;
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|