fix: spaceapi-proxy rewriterule prefix
All checks were successful
/ upload (push) Successful in 36s
/ build (push) Successful in 1m7s

This commit is contained in:
s3lph 2025-02-19 23:53:43 +01:00
parent bcc4ceab62
commit f6f3aa3439
Signed by: s3lph
GPG key ID: 0AA29A52FB33CFB5
2 changed files with 1 additions and 2 deletions

View file

@ -5,7 +5,7 @@ window.onload = (ev) => {
{%- if 'spaceapi' in space %}
{%- if htaccess_spaceapi_proxy %}
{%- set proto, url = space.spaceapi.split('://', 1) %}
{%- set apiurl = htaccess_spaceapi_proxy + '/' + proto + '/' + url %}
{%- set apiurl = baseurl + htaccess_spaceapi_proxy + '/' + proto + '/' + url %}
{%- else %}
{%- set apiurl = space.spaceapi %}
{%- endif %}

View file

@ -3,7 +3,6 @@
DirectoryIndex index.var index.html
RewriteEngine on
RewriteRule ^.well-known/spaceapi.json$ spaceapi.json [L]
{% if htaccess_spaceapi_proxy %}
# SpaceAPI proxy service workaround for missing CORS headers
{%- for space in hackerspaces %}