first commit
This commit is contained in:
commit
2a3ea31491
52 changed files with 2991 additions and 0 deletions
18
hosts/hetzner/nginx.nix
Normal file
18
hosts/hetzner/nginx.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{ domain, isProd, ... }:
|
||||
{
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
recommendedProxySettings = true;
|
||||
recommendedTlsSettings = isProd;
|
||||
|
||||
virtualHosts."${domain}" = {
|
||||
forceSSL = isProd;
|
||||
enableACME = isProd;
|
||||
|
||||
locations."/test" = {
|
||||
return = "200 'Hello! You are accessing: ${domain}/test'";
|
||||
extraConfig = "default_type text/plain;";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue