17 lines
242 B
Nix
17 lines
242 B
Nix
{ ... }:
|
|
{
|
|
imports = [
|
|
./acme-challenge.nix
|
|
];
|
|
|
|
services.nginx.virtualHosts."_" = {
|
|
listen = [{
|
|
addr = "0.0.0.0";
|
|
port = 80;
|
|
}];
|
|
locations."/" = {
|
|
return = "301 https://$host$request_uri";
|
|
};
|
|
};
|
|
}
|