2023-01-06 00:00:27 +01:00
|
|
|
|
|
|
|
# Language-specific index based on Accept-Language header
|
|
|
|
DirectoryIndex index.var index.html
|
|
|
|
|
|
|
|
{% if htaccess_spaceapi_proxy %}
|
|
|
|
# SpaceAPI proxy service workaround for missing CORS headers
|
|
|
|
RewriteEngine on
|
|
|
|
{%- for space in hackerspaces %}
|
2023-01-06 02:50:38 +01:00
|
|
|
{%- if 'spaceapi' in space and space.spaceapi.startswith('/') %}
|
|
|
|
RewriteRule ^{{ space.spaceapi[1:] }}$ {{ space.spaceapi.split('/', 3)[2] }}://{{ space.spaceapi.split('/', 3)[3] }} [P,L]
|
2023-01-06 00:00:27 +01:00
|
|
|
{%- endif %}
|
|
|
|
{%- endfor %}
|
|
|
|
{%- endif %}
|