mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
wordpress: Use drop-in config component for /etc files
Tests: - Config files are all symlinks in /etc/ - Web interface works - Adding a plugin using auto-download works - fail2ban-client status shows wordpress-freedombox - fail2ban catches invalid login attempts Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
73bc89b916
commit
86444764a7
4
debian/freedombox.maintscript
vendored
4
debian/freedombox.maintscript
vendored
@ -144,3 +144,7 @@ rm_conffile /etc/apt/apt.conf.d/20freedombox-allow-release-info-change 23.10~
|
||||
rm_conffile /etc/apt/apt.conf.d/60unattended-upgrades 23.10~
|
||||
rm_conffile /etc/needrestart/conf.d/freedombox.conf 23.10~
|
||||
rm_conffile /etc/apache2/includes/freedombox-auth-ldap.conf 23.10~
|
||||
rm_conffile /etc/apache2/conf-available/wordpress-freedombox.conf 23.10~
|
||||
rm_conffile /etc/fail2ban/jail.d/wordpress-freedombox.conf 23.10~
|
||||
rm_conffile /etc/fail2ban/filter.d/wordpress-freedombox.conf 23.10~
|
||||
rm_conffile /etc/wordpress/freedombox-static.php 23.10~
|
||||
|
||||
@ -5,6 +5,7 @@ from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from plinth import app as app_module
|
||||
from plinth import cfg, frontpage, menu
|
||||
from plinth.config import DropinConfigs
|
||||
from plinth.daemon import Daemon
|
||||
from plinth.modules.apache.components import Webserver
|
||||
from plinth.modules.backups.components import BackupRestore
|
||||
@ -42,7 +43,7 @@ class WordPressApp(app_module.App):
|
||||
|
||||
app_id = 'wordpress'
|
||||
|
||||
_version = 3
|
||||
_version = 4
|
||||
|
||||
def __init__(self):
|
||||
"""Create components for the app."""
|
||||
@ -86,6 +87,14 @@ class WordPressApp(app_module.App):
|
||||
conflicts_action=Packages.ConflictsAction.REMOVE)
|
||||
self.add(packages)
|
||||
|
||||
dropin_configs = DropinConfigs('dropin-configs-wordpress', [
|
||||
'/etc/apache2/conf-available/wordpress-freedombox.conf',
|
||||
'/etc/fail2ban/jail.d/wordpress-freedombox.conf',
|
||||
'/etc/fail2ban/filter.d/wordpress-freedombox.conf',
|
||||
'/etc/wordpress/freedombox-static.php',
|
||||
])
|
||||
self.add(dropin_configs)
|
||||
|
||||
firewall = Firewall('firewall-wordpress', info.name,
|
||||
ports=['http', 'https'], is_external=True)
|
||||
self.add(firewall)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user