mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-07-22 11:59:33 +00:00
letsencrypt: Remove special treatment for domain added from 'config'
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
parent
39e250fb8e
commit
50c0858d53
@ -168,14 +168,6 @@ def get_status():
|
||||
"""Get the current settings."""
|
||||
status = actions.superuser_run('letsencrypt', ['get-status'])
|
||||
status = json.loads(status)
|
||||
curr_dom = config.get_domainname()
|
||||
current_domain = {
|
||||
'name':
|
||||
curr_dom,
|
||||
'has_cert': (curr_dom in status['domains']
|
||||
and status['domains'][curr_dom]['certificate_available']),
|
||||
}
|
||||
status['current_domain'] = current_domain
|
||||
|
||||
for domain_type, domains in names.domains.items():
|
||||
# XXX: Remove when Let's Encrypt supports .onion addresses
|
||||
|
||||
@ -50,13 +50,7 @@
|
||||
<tbody>
|
||||
{% for domain, domain_status in status.domains.items %}
|
||||
<tr>
|
||||
<td>
|
||||
{% if domain == status.current_domain.name %}
|
||||
<b>{{ domain }}</b>
|
||||
{% else %}
|
||||
{{ domain }}
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>{{ domain }}</td>
|
||||
<td>
|
||||
{% if domain_status.certificate_available and domain_status.validity == "valid" %}
|
||||
<span class="label label-success">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user