Skip to content

enable multisite-support

Konrad Mohrfeldt requested to merge kmohrf/mdevplan:multisite-support into master

Howdy,

These changes add multisite support through the use of systemd template units. Further use as an uwsgi application via the debian configuration layout for uwsgi is discouraged and the configuration file in /etc/uwsgi/apps-available is removed accordingly. uwsgi is still used but through a separate systemd unit.

Individual mdevplan instances can be created by adding an environment config in /etc/default/mdevplan-foo that should specify the DJANGO_SETTINGS_MODULE and MDEVPLAN_DATA_DIR variables. Global configuration environment variables can still be set in /etc/default/mdevplan. Once the environment configuration exists the instance can be enabled with systemctl enable --now mdevplan@foo.

NGINX snippets are provided for ease of multiple deployments. A basic server configuration looks like this:

server {
	listen 80;
	set $mdevplan_instance foo;
	include snippets/mdevplan.conf;	
	include snippets/mdevplan-webapp.conf;
}

cheers :)

Merge request reports