feature: the CA certificates and CRLs are always published over HTTP and HTTPS on the status and Manager ports, the Shell page is an entry of the page menu, and the web interface passes its lint.
Release / release (push) Successful in 26s
Release / release (push) Successful in 26s
This commit is contained in:
1 parent
4b5318c676
commit
0cec95c19b
72 files changed
+910
-861
No files matched your search
@@ -293,22 +293,18 @@ def filter_block(ctx):
|
||||
lines += ['', '# METRICS RULES START', *opened(ctx['metrics_listen'], ctx['metrics_port']),
|
||||
'# METRICS RULES END']
|
||||
|
||||
# The ACME CA reaches the HTTP challenge on the external interface while it issues the server's certificate, and
|
||||
# the CA files published on port 80 are read on both; the HTTPS ports are open on both.
|
||||
# The ACME CA reaches the HTTP challenge on the external interface while it issues the server's certificate; the
|
||||
# HTTPS ports are open on both.
|
||||
if linuxmanager.https_ready(ctx) and interfaces:
|
||||
publish = ctx['pki_publish']
|
||||
ports = [port for wanted, port in ((ctx['web_enabled'] or 'https' in publish or ctx['pki_acme'],
|
||||
ctx['https_web_port']),
|
||||
ports = [port for wanted, port in ((ctx['web_enabled'] or ctx['pki_acme'], ctx['https_web_port']),
|
||||
(True, ctx['https_manager_port']),
|
||||
(linuxmanager.metrics_ready(ctx), ctx['metrics_https_port']),
|
||||
(linuxmanager.webdav_ready(ctx), ctx['webdav_port']),
|
||||
('http-80' in publish, linuxmanager.ACME_HTTP_PORT),
|
||||
('https-default' in publish, linuxmanager.HTTPS_DEFAULT_PORT)) if wanted]
|
||||
(linuxmanager.webdav_ready(ctx), ctx['webdav_port'])) if wanted]
|
||||
lines += [
|
||||
'',
|
||||
'# HTTPS RULES START',
|
||||
*([f'-A ufw-before-input -i {ctx["wan_iface"]} -p tcp --dport {linuxmanager.ACME_HTTP_PORT} -j ACCEPT']
|
||||
if ctx['wan_iface'] and 'http-80' not in publish and ctx['https_certificate'] == 'acme' else []),
|
||||
if ctx['wan_iface'] and ctx['https_certificate'] == 'acme' else []),
|
||||
*(f'-A ufw-before-input -i {name} -p tcp --dport {port} -j ACCEPT' for name in interfaces for port in ports),
|
||||
'# HTTPS RULES END',
|
||||
]
|
||||
@@ -757,8 +753,9 @@ def manage_caddy(cfg, ctx):
|
||||
its service on its loopback port. The certificate comes from the ACME CA of https.acme_provider, the global issuer,
|
||||
with https.certificate acme, and otherwise is the one linuxmanager_pki.https_files gives, written to
|
||||
CADDY_HTTPS_DIR; while that cannot be read, the HTTPS sites are left out, so that no ACME CA is asked for it. It
|
||||
also serves the CA files of linuxmanager_pki.PUBLISH_DIR at /pki/ on the endpoints of pki.publish that are Caddy's,
|
||||
and an ACME server at /acme/<name>/ on https.web_port for each issuing CA with acme and a certificate.
|
||||
also serves the CA files of linuxmanager_pki.PUBLISH_DIR at /pki/ on web.port, the Manager's port, https.web_port
|
||||
and https.manager_port, ahead of the redirect to HTTPS, and an ACME server at /acme/<name>/ on https.web_port for
|
||||
each issuing CA with acme and a certificate.
|
||||
|
||||
It serves each site of ctx's sites from its folder, with the TLS of the site: an issuing CA of tls ca issues its
|
||||
certificates, and the certificate and key of tls file are written to CADDY_SITES_DIR/<name>. The certificates and
|
||||
|
||||
Reference in new issue
Block a user