Compare commits
6
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1415cc53c6 | ||
|
|
12dee8bf75 | ||
|
|
8de2b125e9 | ||
|
|
1c70b9e61a | ||
|
|
b7bf41057a | ||
|
|
1c2d5e9f7f |
@@ -14,6 +14,7 @@ let
|
|||||||
nsadmin = "hostmaster.commoninternet.net"
|
nsadmin = "hostmaster.commoninternet.net"
|
||||||
records = [
|
records = [
|
||||||
"acme.commoninternet.net. NS ns-acme.commoninternet.net.",
|
"acme.commoninternet.net. NS ns-acme.commoninternet.net.",
|
||||||
|
"ns-acme.commoninternet.net. A 91.98.47.73",
|
||||||
]
|
]
|
||||||
debug = false
|
debug = false
|
||||||
|
|
||||||
@@ -27,9 +28,9 @@ let
|
|||||||
ip = "127.0.0.1"
|
ip = "127.0.0.1"
|
||||||
port = "8080"
|
port = "8080"
|
||||||
tls = "none"
|
tls = "none"
|
||||||
# Bootstrap registration is deliberately temporary. Once the single Lego
|
# The one Lego account was bootstrapped before this configuration was
|
||||||
# account exists, change this to true in a follow-up reviewed deployment.
|
# hardened. Updates authenticated by that account remain available.
|
||||||
disable_registration = false
|
disable_registration = true
|
||||||
corsorigins = []
|
corsorigins = []
|
||||||
|
|
||||||
[logconfig]
|
[logconfig]
|
||||||
@@ -56,6 +57,12 @@ in
|
|||||||
|
|
||||||
environment.etc."acme-dns/lego.env".source = legoEnvironment;
|
environment.etc."acme-dns/lego.env".source = legoEnvironment;
|
||||||
|
|
||||||
|
# The staging order has completed successfully. This marker permits the
|
||||||
|
# production ACME post-run hook to hand a renewed certificate to Traefik.
|
||||||
|
systemd.tmpfiles.rules = [
|
||||||
|
"f /var/lib/ci-certs/acme-production-enabled 0600 root root -"
|
||||||
|
];
|
||||||
|
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
allowedTCPPorts = [ 53 ];
|
allowedTCPPorts = [ 53 ];
|
||||||
allowedUDPPorts = [ 53 ];
|
allowedUDPPorts = [ 53 ];
|
||||||
@@ -130,15 +137,15 @@ in
|
|||||||
certs."ci.commoninternet.net" = {
|
certs."ci.commoninternet.net" = {
|
||||||
domain = "ci.commoninternet.net";
|
domain = "ci.commoninternet.net";
|
||||||
extraDomainNames = [ "*.ci.commoninternet.net" ];
|
extraDomainNames = [ "*.ci.commoninternet.net" ];
|
||||||
# The pinned Lego provider spells this `acmedns`; keep the service on
|
# Staging issuance succeeded using the permanent, narrowly delegated
|
||||||
# staging until the operator has installed the permanent CNAME.
|
# CNAME. Production uses the same restricted acme-dns account.
|
||||||
dnsProvider = "acmedns";
|
dnsProvider = "acmedns";
|
||||||
environmentFile = "/etc/acme-dns/lego.env";
|
environmentFile = "/etc/acme-dns/lego.env";
|
||||||
dnsResolver = "1.1.1.1:53";
|
dnsResolver = "1.1.1.1:53";
|
||||||
server = "https://acme-staging-v02.api.letsencrypt.org/directory";
|
server = "https://acme-v02.api.letsencrypt.org/directory";
|
||||||
postRun = ''
|
postRun = ''
|
||||||
# Production cutover creates this marker in a separate reviewed
|
# The production marker is deployed only after staging proves the
|
||||||
# deployment. Staging issuance must never replace the live cert.
|
# permanent CNAME and restricted acme-dns account work end to end.
|
||||||
if [ -e /var/lib/ci-certs/acme-production-enabled ]; then
|
if [ -e /var/lib/ci-certs/acme-production-enabled ]; then
|
||||||
${pkgs.systemd}/bin/systemctl --no-block start cc-ci-acme-traefik-handoff.service
|
${pkgs.systemd}/bin/systemctl --no-block start cc-ci-acme-traefik-handoff.service
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user