style(web): moving global nginx configuration in web.nix
This commit is contained in:
parent
54080cfa18
commit
efc4d193fd
2 changed files with 18 additions and 9 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue