Modularized nginx config.
This commit is contained in:
parent
ea53feeb74
commit
1c62f3201e
9 changed files with 218 additions and 168 deletions
11
services/nginx_vHosts/mail.nix
Normal file
11
services/nginx_vHosts/mail.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
vHost = if config.mailserver.enable then {
|
||||
serverName = config.mailserver.fqdn;
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
} else {};
|
||||
}.vHost
|
Loading…
Add table
Add a link
Reference in a new issue