mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
letsencrypt: Use new setup mechanism
This commit is contained in:
3 files changed
+34
-28
No files matched your search
@@ -29,20 +29,20 @@ import json
|
||||
import logging
|
||||
|
||||
from plinth import actions
|
||||
from plinth import package
|
||||
from plinth.errors import ActionError
|
||||
from plinth.modules import letsencrypt
|
||||
from plinth.modules import names
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@package.required(['letsencrypt'])
|
||||
def index(request):
|
||||
"""Serve configuration page."""
|
||||
status = get_status()
|
||||
|
||||
return TemplateResponse(request, 'letsencrypt.html',
|
||||
{'title': _('Certificates (Let\'s Encrypt)'),
|
||||
{'title': letsencrypt.title,
|
||||
'description': letsencrypt.description,
|
||||
'status': status})
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user