1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00
iiab/roles/lokole/templates/lokole.conf.j2

30 lines
789 B
Text
Raw Normal View History

# Root directory goes to Lokole web server
2018-11-04 05:33:09 +00:00
RedirectMatch ^{{ lokole_url }}$ {{ lokole_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 }}
<Directory {{ lokole_install_path }}>
Options Indexes FollowSymLinks
2018-07-27 04:31:17 +00:00
# Don't allow modifications in static directory
2018-07-08 01:21:42 +00:00
Require all granted
2018-07-27 04:31:17 +00:00
<LimitExcept GET HEAD OPTIONS>
Require all denied
</LimitExcept>
2018-07-08 01:21:42 +00:00
</Directory>
2018-07-27 04:31:17 +00:00
# Disable TRACE to prevent cross-site tracing
TraceEnable off