mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-02-11 08:23:49 +00:00
gitweb: Use drop-in config component for /etc files
Tests: - Config files are all symlinks /etc/ - Configuration file is effective - Web interface works - Web interface authentication works Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
ad13211f7e
commit
13db2c2372
3
debian/freedombox.maintscript
vendored
3
debian/freedombox.maintscript
vendored
@ -87,3 +87,6 @@ rm_conffile /etc/plinth/modules-enabled/users 23.10~
|
||||
rm_conffile /etc/plinth/modules-enabled/wireguard 23.10~
|
||||
rm_conffile /etc/plinth/modules-enabled/wordpress 23.10~
|
||||
rm_conffile /etc/plinth/modules-enabled/zoph 23.10~
|
||||
rm_conffile /etc/gitweb-freedombox.conf 23.10~
|
||||
rm_conffile /etc/apache2/conf-available/gitweb-freedombox.conf 23.10~
|
||||
rm_conffile /etc/apache2/conf-available/gitweb-freedombox-auth.conf 23.10~
|
||||
|
||||
@ -7,6 +7,7 @@ from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from plinth import app as app_module
|
||||
from plinth import frontpage, menu
|
||||
from plinth.config import DropinConfigs
|
||||
from plinth.modules.apache.components import Webserver
|
||||
from plinth.modules.backups.components import BackupRestore
|
||||
from plinth.modules.firewall.components import Firewall
|
||||
@ -35,7 +36,7 @@ class GitwebApp(app_module.App):
|
||||
|
||||
app_id = 'gitweb'
|
||||
|
||||
_version = 2
|
||||
_version = 3
|
||||
|
||||
def __init__(self):
|
||||
"""Create components for the app."""
|
||||
@ -68,6 +69,13 @@ class GitwebApp(app_module.App):
|
||||
packages = Packages('packages-gitweb', ['gitweb', 'highlight'])
|
||||
self.add(packages)
|
||||
|
||||
dropin_configs = DropinConfigs('dropin-configs-gitweb', [
|
||||
'/etc/gitweb-freedombox.conf',
|
||||
'/etc/apache2/conf-available/gitweb-freedombox.conf',
|
||||
'/etc/apache2/conf-available/gitweb-freedombox-auth.conf'
|
||||
])
|
||||
self.add(dropin_configs)
|
||||
|
||||
firewall = Firewall('firewall-gitweb', info.name,
|
||||
ports=['http', 'https'], is_external=True)
|
||||
self.add(firewall)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user