Enable basic auth passthrough for API

Added the couple of apache configuration lines necessary to get the basic authentication working for the API.
This commit is contained in:
donkers 2018-01-04 14:18:07 +11:00 committed by GitHub
parent c002cdbf94
commit 4bfdecbf64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
@ -11,6 +12,7 @@
<Directory {{ pkg_path }}>
WSGIProcessGroup ihatemoney
WSGIApplicationGroup %{GLOBAL}
AuthType Basic
Order deny,allow
Allow from all
</Directory>