2025-01-04 21:02:06 +04:00
|
|
|
{ config, lib, ... }:
|
|
|
|
with lib;
|
2025-01-04 21:06:33 +04:00
|
|
|
let cfg = config.void.server.services.sakosite;
|
2025-01-04 21:02:06 +04:00
|
|
|
in {
|
|
|
|
options.void.server.services.sakosite = { enable = mkEnableOption false; };
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
security.acme.certs."sako.lol" = {
|
|
|
|
credentialsFile = "/srv/secrets/porkbun";
|
|
|
|
dnsProvider = "porkbun";
|
|
|
|
webroot = null;
|
|
|
|
};
|
|
|
|
services = {
|
|
|
|
nginx.virtualHosts."sako.lol" = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
root = "/srv/static/sakosite";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|