style(web): moving global nginx configuration in web.nix

This commit is contained in:
Raphael 2025-06-10 22:53:01 +02:00
parent 54080cfa18
commit efc4d193fd
2 changed files with 18 additions and 9 deletions

View file

@ -11,6 +11,20 @@ in
portefolio
];
config = {
services.nginx = {
enable = true;
recommendedGzipSettings = true;
recommendedProxySettings = true;
};
security.acme = {
acceptTerms = true;
defaults.email = "raphael@parodi.pro";
certs = {
"raphael.parodi.pro" = {};
};
};
};
options.service.web = {
portefolio = lib.mkOption {
type = lib.types.bool;

View file

@ -22,9 +22,6 @@ in
};
services.nginx = {
enable = true;
recommendedGzipSettings = true;
recommendedProxySettings = true;
virtualHosts."raphael.parodi.pro" = {
forceSSL = true;
enableACME = true;
@ -38,8 +35,6 @@ in
};
};
security.acme = {
acceptTerms = true;
email = "raphael@parodi.pro";
certs = {
"raphael.parodi.pro" = {};
};