Sebastian Walz 860d31cee1
Tohu vaBohu
2023-04-21 00:22:52 +02:00

18 lines
465 B
Nix

{ enableACME, extraConfig, forceSSL, ... }:
Service "Static Files"
{
configuration
= { network, ... }:
{
nginx
= {
enable = true;
virtualHosts."static.${network.domain}"
= {
inherit enableACME extraConfig forceSSL;
locations."/".root= "/var/static/";
};
};
};
}