chaostreff.ch/static-src/.htaccess

14 lines
469 B
ApacheConf
Raw Normal View History

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 %}
{%- 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 %}