⚡ 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
Merge branch 'main' of https://github.com/usekaneo/kaneo into feat-websockets-bugfixes
tiran133319f9616edfe
diff --cc .env.sampleindex 40b42fa0b,b104ac5b4..fa26e4031--- a/.env.sample+++ b/.env.sample@@@ -8,25 -8,9 +8,27 @@@ POSTGRES_DB=kanePOSTGRES_USER=kaneoPOSTGRES_PASSWORD=+# Redis Pub/Sub for WebSockets (Optional) -> auto fallback to in memory+# Only one mode should be configured. Priority: Cluster > Sentinel > Standalone.++# Standalone+#REDIS_URL=++# Sentinel+#REDIS_SENTINELS=+#REDIS_SENTINEL_MASTER_NAME=mymaster+#REDIS_SENTINEL_PASSWORD=+#REDIS_SENTINEL_TLS=false++# Cluster+#REDIS_CLUSTER_NODES=++# Shared (Sentinel & Cluster)+#REDIS_PASSWORD=+# Authentication+ # Generate with: openssl rand -hex 32+ # If unset, a random secret is generated at startup (sessions won't survive restarts)AUTH_SECRET=# GitHub SSO (Sign in with GitHub — OAuth App)diff --cc .gitignoreindex 41685685e,32b3bd997..d39b8d884--- a/.gitignore+++ b/.gitignore@@@ -43,5 -43,6 +43,8 @@@ yarn-error.log# Cache.cache/-+ # Overrides+ compose.override.yml+++# IntelliJ IDE+.ideadiff --cc apps/api/src/index.tsindex 8b9bbe1bc,a6fe59738..a4811302c--- a/apps/api/src/index.ts+++ b/apps/api/src/index.ts@@@ -127,11 -118,14 +127,16 @@@ function buildContentDisposition(filenaexport function createApp() {const app = new Hono<AppVariables>();+ const nodeWs = createNodeWebSocket({ app });+ const { upgradeWebSocket, injectWebSocket } = nodeWs;- const corsOrigins = process.env.CORS_ORIGINS- ? process.env.CORS_ORIGINS.split(",").map((origin) => origin.trim())- : undefined;+ const corsOriginSource = [+ process.env.CORS_ORIGINS,+ process.env.KANEO_CLIENT_URL,+ ].find((value) => value?.trim());+ const corsOrigins = corsOriginSource+ ?.split(",")+ .map((origin) => origin.trim())+ .filter(Boolean);app.use("*",diff --cc compose.ymlindex bf0fe2626,640874599..055645ff3--- a/compose.yml+++ b/compose.yml@@@ -24,22 -24,12 +24,18 @@@ servicespostgres:condition: service_healthyrestart: unless-stopped+ healthcheck:+ test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5173/api/health"]+ interval: 30s+ timeout: 5s+ start_period: 60s+ retries: 3+# Optional for HA Setup+# redis:+# image: valkey/valkey+# ports:+# - "6379:6379"+- web:- image: ghcr.io/usekaneo/web:latest- ports:- - "5173:5173"- env_file:- - .env- depends_on:- - api- restart: unless-stopped-volumes:postgres_data: