mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-06 10:20:43 +00:00
Moved Apache configuration to Plinth setup script.
James added the Apache Headers module to the makefile, but not the FreedomBox-Setup configuration script. However, it's ridiculous to have multiple locations for that same logic, so now the makefile uses the setup script for the Apache configuration instead. Also, the modules are now fancy and alphabetized.
This commit is contained in:
parent
96f4430513
commit
51e3af611b
12
Makefile
12
Makefile
@ -93,15 +93,11 @@ current-repository.tar.gz: $(ALL_BUT_GZ)
|
||||
|
||||
apache-install:
|
||||
install -D -m644 share/apache2/plinth.conf $(DESTDIR)/etc/apache2/sites-available/plinth.conf
|
||||
apache-config: apache-install apache-ssl
|
||||
apache-config: apache-install apache-modules
|
||||
a2ensite plinth
|
||||
service apache2 reload
|
||||
|
||||
apache-ssl:
|
||||
make-ssl-cert generate-default-snakeoil
|
||||
a2enmod ssl
|
||||
a2enmod headers
|
||||
a2enmod rewrite
|
||||
a2enmod proxy
|
||||
a2enmod proxy_http
|
||||
apache-modules:
|
||||
# enable all required modules, create snakeoil cert.
|
||||
./setup.d/86_plinth
|
||||
service apache2 restart
|
||||
|
||||
@ -1,15 +1,16 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Enable Plinth.
|
||||
# Enable Apache modules required for Plinth.
|
||||
|
||||
echo "Configuring Plinth..."
|
||||
echo "Configuring Apache for Plinth..."
|
||||
|
||||
make-ssl-cert generate-default-snakeoil
|
||||
a2enmod ssl
|
||||
a2enmod rewrite
|
||||
a2enmod headers
|
||||
a2enmod proxy
|
||||
a2enmod proxy_http
|
||||
a2enmod rewrite
|
||||
a2enmod ssl
|
||||
a2dissite default
|
||||
a2ensite plinth.conf
|
||||
|
||||
echo "Done configuring Plinth.."
|
||||
echo "Done configuring Apache for Plinth."
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user