1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 19:22:24 +00:00

Add /lokole/ to path for links from webapp

This commit is contained in:
rgangela99 2018-07-28 13:31:33 -04:00 committed by Aidan Fitzgerald
parent 0675ad8777
commit 7920722aa3
2 changed files with 11 additions and 2 deletions

View file

@ -12,7 +12,7 @@ lokole_install: True
lokole_enabled: True
lokole_url: /lokole
lokole_full_url: "http://{{ iiab_hostname }}.{{ iiab_domain }}/{{ lokole_url }}"
lokole_full_url: "http://{{ iiab_hostname }}.{{ iiab_domain }}{{ lokole_url }}"
lokole_domain_socket: "{{ lokole_run_directory }}/lokole_gunicorn.sock"

View file

@ -1,5 +1,14 @@
# Root directory goes to Lokole web server
ProxyPass {{ lokole_url }} unix:{{ lokole_domain_socket }}|{{ lokole_full_url }}
ProxyRequests off
ProxyPass {{ lokole_url }}/ unix:{{ lokole_domain_socket }}|http://{{ iiab_hostname }}.{{ iiab_domain }}/
<Location {{ lokole_url }}/>
ProxyPassReverse /
ProxyHTMLEnable On
ProxyHTMLURLMap / {{ lokole_url }}/
RequestHeader unset Accept-Encoding
</Location>
# /static directory is stored on filesystem
Alias {{ lokole_url }}/static {{ lokole_install_path }}