mirror of
https://github.com/sadan4/dotfiles.git
synced 2025-06-10 14:33:02 -04:00
pray
This commit is contained in:
parent
54dea756ff
commit
530dbe25b9
5 changed files with 78 additions and 1 deletions
33
common/systemModules/nginx.nix
Normal file
33
common/systemModules/nginx.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
services = {
|
||||
nginx = {
|
||||
user = "root";
|
||||
enable = true;
|
||||
logError = "syslog:warn";
|
||||
statusPage = true;
|
||||
};
|
||||
};
|
||||
sops = {
|
||||
secrets = {
|
||||
cloudflare_env = {
|
||||
format = "dotenv";
|
||||
sopsFile = ./cloudflare.env;
|
||||
};
|
||||
};
|
||||
};
|
||||
security = {
|
||||
acme = {
|
||||
certs = {
|
||||
"sadan.zip" = {
|
||||
dnsProvider = "cloudflare";
|
||||
extraDomains = [
|
||||
"*.sadan.zip"
|
||||
];
|
||||
environmentFile = config.sops.secrets.cloudflare_env.path;
|
||||
};
|
||||
};
|
||||
acceptTerms = true;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue