add sakosite
This commit is contained in:
parent
d78b350f98
commit
215c06c753
|
@ -1 +1 @@
|
||||||
{ imports = [ ./forgejo ./headscale.nix ./local ]; }
|
{ imports = [ ./forgejo ./headscale.nix ./local ./sakosite.nix ]; }
|
||||||
|
|
22
modules/server/services/sakosite.nix
Normal file
22
modules/server/services/sakosite.nix
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{ config, lib, ... }:
|
||||||
|
with lib;
|
||||||
|
let cfg = config.void.services.sakosite;
|
||||||
|
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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue