mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-05 12:41:49 +02:00
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:
parent
c002cdbf94
commit
4bfdecbf64
1 changed files with 2 additions and 0 deletions
|
@ -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 %}
|
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
|
WSGIScriptAlias / {{ pkg_path }}/wsgi.py
|
||||||
|
WSGIPassAuthorization On
|
||||||
|
|
||||||
ErrorLog /var/log/apache2/ihatemoney.example.com_error.log
|
ErrorLog /var/log/apache2/ihatemoney.example.com_error.log
|
||||||
CustomLog /var/log/apache2/ihatemoney.example.com_access.log combined
|
CustomLog /var/log/apache2/ihatemoney.example.com_access.log combined
|
||||||
|
@ -11,6 +12,7 @@
|
||||||
<Directory {{ pkg_path }}>
|
<Directory {{ pkg_path }}>
|
||||||
WSGIProcessGroup ihatemoney
|
WSGIProcessGroup ihatemoney
|
||||||
WSGIApplicationGroup %{GLOBAL}
|
WSGIApplicationGroup %{GLOBAL}
|
||||||
|
AuthType Basic
|
||||||
Order deny,allow
|
Order deny,allow
|
||||||
Allow from all
|
Allow from all
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
Loading…
Reference in a new issue