Test opening port 80 for certbot operation

This commit is contained in:
Patrik Lundin 2024-10-08 16:38:11 +02:00
parent fe04d862e3
commit 6354f6faaa
Signed by: patlu
GPG key ID: A0A812BA2249F294
2 changed files with 9 additions and 0 deletions

View file

@ -116,4 +116,7 @@ class cdn::ca(
creates => '/root/.step/config/defaults.json',
onlyif => 'test -f /opt/step-ca/data/certs/root_ca.crt'
}
# Enable acme
# step ca provisioner add acme --type ACME --admin-subject=step --admin-password-file=/opt/step-ca/init/secrets/provisioner-password
}

View file

@ -22,4 +22,10 @@ class cdn::mqtt(
mode => '0644',
content => template('cdn/mqtt/cdn.conf.erb'),
}
sunet::nftables::allow { "allow-step-ca-acme":
from => 'any',
port => 80,
proto => 'tcp',
}
}