24 lines
468 B
Nix
24 lines
468 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
security.acme = {
|
|
acceptTerms = true;
|
|
defaults.email = "security@lyes.eu";
|
|
};
|
|
|
|
services.nginx = {
|
|
enable = true;
|
|
recommendedProxySettings = true;
|
|
recommendedTlsSettings = true;
|
|
|
|
virtualHosts = {
|
|
"auth.lyes.eu" = {
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
locations."/" = {
|
|
proxyPass = "https://${config.services.kanidm.serverSettings.bindaddress}";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|