aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney/conf-templates/apache-vhost.conf.j2
diff options
context:
space:
mode:
authordonkers <thedonkers@gmail.com>2018-01-05 22:32:46 +1100
committer0livd <github@destras.fr>2018-01-05 12:32:46 +0100
commit4ab8863eb20ea75fc0b3990471a01f4874735f3c (patch)
tree5b6513f9e1409bd131a74d88993dadb36adec2aa /ihatemoney/conf-templates/apache-vhost.conf.j2
parentc002cdbf9477f6db6f8c5c3db912957601c290a5 (diff)
downloadihatemoney-mirror-4ab8863eb20ea75fc0b3990471a01f4874735f3c.zip
ihatemoney-mirror-4ab8863eb20ea75fc0b3990471a01f4874735f3c.tar.gz
ihatemoney-mirror-4ab8863eb20ea75fc0b3990471a01f4874735f3c.tar.bz2
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".
Diffstat (limited to 'ihatemoney/conf-templates/apache-vhost.conf.j2')
-rw-r--r--ihatemoney/conf-templates/apache-vhost.conf.j21
1 files changed, 1 insertions, 0 deletions
diff --git a/ihatemoney/conf-templates/apache-vhost.conf.j2 b/ihatemoney/conf-templates/apache-vhost.conf.j2
index cb0167f..3246d27 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