⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
feat(api): add mcp redirects
Andrej491fa817a5d6
diff --git a/apps/web/env.sh b/apps/web/env.shindex 441652558..5b0cec43c 100644--- a/apps/web/env.sh+++ b/apps/web/env.sh@@ -6,17 +6,22 @@ echo "Starting environment variable replacement..."# Process KANEO_API_URL first (with special handling)if [ ! -z "$KANEO_API_URL" ]; thenecho "Found KANEO_API_URL: $KANEO_API_URL"-+# First, replace the exact string "KANEO_API_URL" in all JavaScript files# Use grep -l to only process files that contain the stringfind /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"-+# Also check for the escaped version which might appear in some filesfind /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"-++ # Replace placeholder in nginx config so /.well-known proxies to the API+ sed -i "s#KANEO_API_URL_PLACEHOLDER#$KANEO_API_URL#g" /etc/nginx/conf.d/default.conf+echo "✅ Replaced KANEO_API_URL with $KANEO_API_URL"elseecho "WARNING: KANEO_API_URL environment variable is not set. API calls may fail."+ # Remove the proxy block so nginx doesn't fail on missing upstream+ sed -i '/KANEO_API_URL_PLACEHOLDER/,+3d' /etc/nginx/conf.d/default.conffi# Process KANEO_CLIENT_URL efficientlydiff --git a/apps/web/nginx.conf b/apps/web/nginx.confindex b4b7e4988..86595b929 100644--- a/apps/web/nginx.conf+++ b/apps/web/nginx.conf@@ -16,6 +16,12 @@ server {gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;gzip_comp_level 6;+ location /.well-known/ {+ proxy_pass KANEO_API_URL_PLACEHOLDER;+ proxy_set_header Host $host;+ proxy_set_header X-Forwarded-Proto $scheme;+ }+# Root locationlocation / {root /usr/share/nginx/html;