rpi4: rearrange services file
This commit is contained in:
parent
1c89e03809
commit
b3b22fe127
@ -2,14 +2,42 @@
|
||||
{
|
||||
config = {
|
||||
|
||||
users.groups.secrets = {};
|
||||
users.users.acme.extraGroups = [ "secrets" ];
|
||||
|
||||
age.secrets.cloudflaredns = {
|
||||
file = ../../secrets/cloudflare-dns.age;
|
||||
group = "secrets";
|
||||
};
|
||||
|
||||
users.groups.secrets = {};
|
||||
users.users.acme.extraGroups = [ "secrets" ];
|
||||
|
||||
security.acme = {
|
||||
acceptTerms = true;
|
||||
maxConcurrentRenewals = 1;
|
||||
|
||||
defaults.email = "iancoguz@gmail.com";
|
||||
|
||||
certs = {
|
||||
"protogen.io" = {
|
||||
credentialFiles = {
|
||||
"CLOUDFLARE_EMAIL_FILE" = pkgs.writeText "email" "iancoguz@gmail.com";
|
||||
"CLOUDFLARE_API_KEY_FILE" = config.age.secrets.cloudflaredns.path;
|
||||
};
|
||||
|
||||
dnsProvider = "cloudflare";
|
||||
domain = "protogen.io";
|
||||
extraDomainNames = [
|
||||
"*.protogen.io"
|
||||
"nullbite.com"
|
||||
"*.nullbite.com"
|
||||
"nullbite.dev"
|
||||
"*.nullbite.dev"
|
||||
"nbt.sh"
|
||||
"*.nbt.sh"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
users.users.nginx.extraGroups = [ "acme" ];
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||
@ -45,32 +73,6 @@
|
||||
};
|
||||
};
|
||||
|
||||
security.acme = {
|
||||
acceptTerms = true;
|
||||
maxConcurrentRenewals = 1;
|
||||
|
||||
defaults.email = "iancoguz@gmail.com";
|
||||
|
||||
certs = {
|
||||
"protogen.io" = {
|
||||
credentialFiles = {
|
||||
"CLOUDFLARE_EMAIL_FILE" = pkgs.writeText "email" "iancoguz@gmail.com";
|
||||
"CLOUDFLARE_API_KEY_FILE" = config.age.secrets.cloudflaredns.path;
|
||||
};
|
||||
|
||||
dnsProvider = "cloudflare";
|
||||
domain = "protogen.io";
|
||||
extraDomainNames = [
|
||||
"*.protogen.io"
|
||||
"nullbite.com"
|
||||
"*.nullbite.com"
|
||||
"nullbite.dev"
|
||||
"*.nullbite.dev"
|
||||
"nbt.sh"
|
||||
"*.nbt.sh"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user