From 4ab8863eb20ea75fc0b3990471a01f4874735f3c Mon Sep 17 00:00:00 2001 From: donkers Date: Fri, 5 Jan 2018 22:32:46 +1100 Subject: [PATCH] Enable basic auth passthrough for API (#303) * Enable basic auth passthrough for API Added the couple of apache configuration lines necessary to get the basic authentication working for the API. * Revert the addition of "AuthType Basic" Did some more testing on my server here and I totally agree, don't need "AuthType Basic". --- ihatemoney/conf-templates/apache-vhost.conf.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/ihatemoney/conf-templates/apache-vhost.conf.j2 b/ihatemoney/conf-templates/apache-vhost.conf.j2 index cb0167f5..3246d27f 100644 --- a/ihatemoney/conf-templates/apache-vhost.conf.j2 +++ b/ihatemoney/conf-templates/apache-vhost.conf.j2 @@ -4,6 +4,7 @@ WSGIDaemonProcess ihatemoney user=www-data group=www-data threads=5 python-path={{ pkg_path }} {% if venv_path %}python-home={{ venv_path }}{% endif %} WSGIScriptAlias / {{ pkg_path }}/wsgi.py + WSGIPassAuthorization On ErrorLog /var/log/apache2/ihatemoney.example.com_error.log CustomLog /var/log/apache2/ihatemoney.example.com_access.log combined