18 lines
465 B
Nix
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/";
|
|
};
|
|
};
|
|
};
|
|
}
|