⚡ 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
fix(docker): update nginx configuration for environment variable handling
Andreja693fd6095b2
diff --git a/apps/web/Dockerfile b/apps/web/Dockerfileindex d31e40bb5..ae8bcce39 100644--- a/apps/web/Dockerfile+++ b/apps/web/Dockerfile@@ -52,8 +52,9 @@ RUN addgroup -g 1001 appuser && \# Copy built files from builder stageCOPY --from=builder --chown=appuser:appuser /app/apps/web/dist /usr/share/nginx/html-# Copy nginx configuration+# Copy nginx configuration (writable so env.sh can substitute placeholders at runtime)COPY --chown=appuser:appuser apps/web/nginx.conf /etc/nginx/conf.d/default.conf+RUN chown -R appuser:appuser /etc/nginx/conf.d# Copy and set permissions for environment scriptCOPY --chown=appuser:appuser apps/web/env.sh /docker-entrypoint.d/env.shdiff --git a/apps/web/env.sh b/apps/web/env.shindex 5b0cec43c..02f25d3d3 100644--- a/apps/web/env.sh+++ b/apps/web/env.sh@@ -20,8 +20,9 @@ if [ ! -z "$KANEO_API_URL" ]; thenecho "✅ 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.conf+ # Replace proxy block with 404 so nginx doesn't fail on missing upstream+ sed -i 's#proxy_pass KANEO_API_URL_PLACEHOLDER;#return 404;#g' /etc/nginx/conf.d/default.conf+ sed -i '/proxy_set_header.*Host/d;/proxy_set_header.*Forwarded/d' /etc/nginx/conf.d/default.conffi# Process KANEO_CLIENT_URL efficiently