mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-06-03 10:50:20 +00:00
apache: Add let's encrypt certificate component
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
parent
254b8a98a9
commit
c47a99b25e
@ -23,13 +23,17 @@ from django.utils.translation import ugettext_lazy as _
|
||||
from plinth import actions
|
||||
from plinth import app as app_module
|
||||
from plinth import cfg
|
||||
from plinth.daemon import Daemon
|
||||
from plinth.modules.firewall.components import Firewall
|
||||
from plinth.modules.letsencrypt.components import LetsEncrypt
|
||||
from plinth.utils import format_lazy
|
||||
|
||||
version = 7
|
||||
|
||||
is_essential = True
|
||||
|
||||
managed_services = ['apache2']
|
||||
|
||||
managed_packages = ['apache2', 'php-fpm']
|
||||
|
||||
app = None
|
||||
@ -55,6 +59,13 @@ class ApacheApp(app_module.App):
|
||||
cfg.box_name)), ports=['http', 'https'], is_external=True)
|
||||
self.add(freedombox_ports)
|
||||
|
||||
letsencrypt = LetsEncrypt('letsencrypt-apache', domains='*',
|
||||
daemons=[managed_services[0]])
|
||||
self.add(letsencrypt)
|
||||
|
||||
daemon = Daemon('daemon-apache', managed_services[0])
|
||||
self.add(daemon)
|
||||
|
||||
|
||||
def init():
|
||||
"""Initailze firewall module"""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user