kaneo (minimalist kanban) fork to experiment adding a tangled integration github.com/usekaneo/kaneo
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(api): add mcp redirects

Andrej 491fa817 cd7cada2

+14 -3
+8 -3
apps/web/env.sh
··· 6 6 # Process KANEO_API_URL first (with special handling) 7 7 if [ ! -z "$KANEO_API_URL" ]; then 8 8 echo "Found KANEO_API_URL: $KANEO_API_URL" 9 - 9 + 10 10 # First, replace the exact string "KANEO_API_URL" in all JavaScript files 11 11 # Use grep -l to only process files that contain the string 12 12 find /usr/share/nginx/html -type f -name "*.js" -exec grep -l "KANEO_API_URL" {} \; | xargs -r sed -i "s#KANEO_API_URL#$KANEO_API_URL#g" 13 - 13 + 14 14 # Also check for the escaped version which might appear in some files 15 15 find /usr/share/nginx/html -type f -name "*.js" -exec grep -l "\"KANEO_API_URL\"" {} \; | xargs -r sed -i "s#\"KANEO_API_URL\"#\"$KANEO_API_URL\"#g" 16 - 16 + 17 + # Replace placeholder in nginx config so /.well-known proxies to the API 18 + sed -i "s#KANEO_API_URL_PLACEHOLDER#$KANEO_API_URL#g" /etc/nginx/conf.d/default.conf 19 + 17 20 echo "✅ Replaced KANEO_API_URL with $KANEO_API_URL" 18 21 else 19 22 echo "WARNING: KANEO_API_URL environment variable is not set. API calls may fail." 23 + # Remove the proxy block so nginx doesn't fail on missing upstream 24 + sed -i '/KANEO_API_URL_PLACEHOLDER/,+3d' /etc/nginx/conf.d/default.conf 20 25 fi 21 26 22 27 # Process KANEO_CLIENT_URL efficiently
+6
apps/web/nginx.conf
··· 16 16 gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript; 17 17 gzip_comp_level 6; 18 18 19 + location /.well-known/ { 20 + proxy_pass KANEO_API_URL_PLACEHOLDER; 21 + proxy_set_header Host $host; 22 + proxy_set_header X-Forwarded-Proto $scheme; 23 + } 24 + 19 25 # Root location 20 26 location / { 21 27 root /usr/share/nginx/html;