Commit graph

19 commits

Author SHA1 Message Date
CREDO23
10e0e733af fix: configure zero-cache sync workers, connection limits, and publication 2026-04-01 10:18:51 +02:00
CREDO23
5c98f1c717 add ZERO_MUTATE_URL and no-op mutate endpoint for zero-cache auth passthrough 2026-03-24 16:25:13 +02:00
CREDO23
cab33d9f4c fix: make ZERO_QUERY_URL portable across all environments
- Default to Docker service networking (http://frontend:3000) in both
  compose files — works when all services run in Docker
- Add extra_hosts (host.docker.internal:host-gateway) for cross-platform
  host access when running frontend outside Docker
- Document override examples in .env.example for local dev and
  custom domain setups
2026-03-24 15:06:58 +02:00
CREDO23
8dd539c384 feat: add Zero query endpoint and configure ZERO_QUERY_URL
- Create app/api/zero/query/route.ts — resolves named queries to ZQL
  using handleQueryRequest and mustGetQuery from @rocicorp/zero
- Add ZERO_QUERY_URL to both docker-compose files:
  - dev: http://host.docker.internal:3000 (reaches local Next.js from Docker)
  - prod: http://frontend:3000 (Docker service networking)

Without this endpoint, zero-cache cannot resolve named queries and
no data syncs to the client.
2026-03-23 20:58:42 +02:00
CREDO23
f9ba7e52d9 feat: add Zero infra — docker-compose, env vars, Dockerfile, CI workflows
- Add zero-cache service to docker-compose.yml and docker-compose.dev.yml
- Add ZERO_* env vars to docker/.env.example
- Add NEXT_PUBLIC_ZERO_CACHE_URL to surfsense_web/.env.example
- Add NEXT_PUBLIC_ZERO_CACHE_URL placeholder ARG/ENV to Dockerfile
- Add NEXT_PUBLIC_ZERO_CACHE_URL runtime substitution to docker-entrypoint.js
- Add NEXT_PUBLIC_ZERO_CACHE_URL build arg to docker-build.yml and desktop-release.yml
2026-03-23 18:27:18 +02:00
CREDO23
2b7465cdaa chore: remove Electric SQL plumbing and infrastructure
Remove all Electric SQL client code, Docker service, env vars, CI build
args, install scripts, and documentation. Feature hooks that depend on
Electric are intentionally left in place to be rewritten with Rocicorp
Zero in subsequent commits.

Deleted:
- lib/electric/ (client.ts, context.ts, auth.ts, baseline.ts)
- ElectricProvider.tsx
- docker/scripts/init-electric-user.sh
- content/docs/how-to/electric-sql.mdx

Cleaned:
- package.json (4 @electric-sql/* deps)
- app/layout.tsx, UserDropdown.tsx, LayoutDataProvider.tsx
- docker-compose.yml, docker-compose.dev.yml
- Dockerfile, docker-entrypoint.js
- .env.example (frontend, docker, backend)
- CI workflows, install scripts, docs
2026-03-23 16:53:20 +02:00
Anish Sarkar
4376f74127 chore: update SearXNG service configuration in Docker and documentation
- Updated SearXNG image version to 2026.3.13-3c1f68c59 in the Docker Compose file.
- Added port mapping for SearXNG service to allow access on a configurable port.
- Enhanced the .env.example file with comments for SearXNG configuration and usage instructions.
2026-03-14 21:03:25 +05:30
Anish Sarkar
d9e312ddaa refactor: simplify SearXNG service configuration in Docker setup
- Consolidated volume mappings for SearXNG to use a single directory.
- Removed unnecessary port mappings and legacy data volume definitions.
- Updated web search service documentation to clarify Redis usage and circuit breaker implementation, eliminating Redis dependency for circuit breaker logic.
2026-03-14 20:34:34 +05:30
Anish Sarkar
d40c6bf743 feat: integrate SearXNG web search service with platform capabilities
- Added SearXNG service configuration to Docker setup, including environment variables and health checks.
- Introduced new settings management for web search in the frontend, allowing users to enable/disable and configure search engines and language preferences.
- Updated backend to support web search functionality, including database schema changes and service integration.
- Implemented health check endpoint for the web search service and integrated it into the application.
- Removed legacy SearXNG API connector references in favor of the new platform service approach.
2026-03-14 20:25:25 +05:30
Anish Sarkar
4e0886e06d chore: rename services and volumes in docker-compose.dev.yml for clarity and consistency in local development environment 2026-03-10 02:57:44 +05:30
Anish Sarkar
57a1c71582 chore: upgrade Redis to version 8-alpine and ElectricSQL to version 1.4.10 in Docker Compose configuration 2026-02-27 22:26:02 +05:30
Anish Sarkar
06e6c1c1be chore: add healthcheck configuration for backend and update service dependencies to ensure healthy startup 2026-02-26 20:08:18 +05:30
Anish Sarkar
f4f659e190 chore: add Daytona Sandbox configuration options to .env.example and Docker Compose files for cloud code execution 2026-02-26 14:37:08 +05:30
Anish Sarkar
512640354c chore: update Docker Compose files to specify names for volume configurations 2026-02-26 10:23:38 +05:30
Anish Sarkar
d7a548622d chore: pinning version for electricsql in both docker-compose files; edit .env.example 2026-02-25 13:00:05 +05:30
Anish Sarkar
2958d1c06a chore: update Docker configuration to rename frontend to web, adjust environment variable references for database and Redis connections 2026-02-25 00:15:29 +05:30
Anish Sarkar
211309f3ac chore: update Docker environment variables for database configuration and improve security defaults 2026-02-24 23:41:22 +05:30
Anish Sarkar
1ce446ed27 feat: add Celery worker and beat services to Docker configuration, update service roles 2026-02-24 23:07:07 +05:30
Anish Sarkar
ce1f8c872f feat: add Docker configuration files and installation script for SurfSense 2026-02-24 22:45:37 +05:30