chaostreff.ch/static-src/.htaccess

16 lines
519 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
RewriteEngine on
RewriteRule ^/.well-known/spaceapi.json$ /spaceapi.json [L]
2023-01-06 00:00:27 +01:00
{% if htaccess_spaceapi_proxy %}
# SpaceAPI proxy service workaround for missing CORS headers
{%- for space in hackerspaces %}
{%- if 'spaceapi' in space %}
{%- set proto, url = space.spaceapi.split('://', 1) %}
RewriteRule ^{{ htaccess_spaceapi_proxy }}/{{ proto }}/{{ url }}$ {{ space.spaceapi }} [P,L]
2023-01-06 00:00:27 +01:00
{%- endif %}
{%- endfor %}
{%- endif %}