Infini-OPTIPLEX: refactor nginx config and use acme certs
This commit is contained in:
parent
12bb7ac8db
commit
d784d4eee4
8 changed files with 83 additions and 31 deletions
|
@ -8,7 +8,11 @@ with lib;
|
|||
'';
|
||||
acme = {
|
||||
acceptTerms = true;
|
||||
defaults.email = "infinidoge@inx.moe";
|
||||
defaults = {
|
||||
email = "infinidoge@inx.moe";
|
||||
dnsProvider = "cloudflare";
|
||||
environmentFile = config.secrets.cloudflare;
|
||||
};
|
||||
};
|
||||
|
||||
pam.sshAgentAuth = {
|
||||
|
@ -87,8 +91,8 @@ with lib;
|
|||
common = {
|
||||
nginx = rec {
|
||||
ssl-cert = {
|
||||
sslCertificate = config.secrets."inx.moe.pem";
|
||||
sslCertificateKey = config.secrets."inx.moe.key";
|
||||
enableACME = true;
|
||||
acmeRoot = null;
|
||||
};
|
||||
ssl-optional = ssl-cert // {
|
||||
addSSL = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue