- Add go.mod and go.sum for dependency management - Implement models for List, Field, Item, ItemValue, SyncRequest, SyncResponse, and NotificationEvent - Create notification handling functions including enqueueNotification and ignoreNotificationError - Implement sync functionality to handle data synchronization between client and server - Add web data handling and notification polling endpoints - Include tests for timestamp normalization and sync logic - Embed web assets for serving the frontend application
32 lines
1.2 KiB
Bash
32 lines
1.2 KiB
Bash
#################################################################
|
|
# Server
|
|
#################################################################
|
|
PORT=3000
|
|
APP_VERSION=dev
|
|
|
|
# Set to "true" once served over HTTPS - marks the admin session cookie Secure.
|
|
COOKIE_SECURE=false
|
|
|
|
#################################################################
|
|
# PostgreSQL configuration
|
|
#################################################################
|
|
# Postgres connection string (bring your own - this app does not run Postgres for you).
|
|
# Example: postgres://user:password@localhost:5432/collabtable
|
|
DATABASE_URL=
|
|
|
|
#################################################################
|
|
# Startup resilience and sync tuning
|
|
#################################################################
|
|
# DB init retry interval in milliseconds (default: 5000)
|
|
DB_INIT_RETRY_INTERVAL_MS=5000
|
|
|
|
# Max DB init retry attempts. 0 means retry forever (default: 0)
|
|
DB_INIT_RETRY_MAX_ATTEMPTS=0
|
|
|
|
# Allow at most this much client clock skew into sync timestamps (default: 0)
|
|
# Keep this at 0 to prevent future-dated rows from being re-sent in hot loops.
|
|
SYNC_MAX_FUTURE_SKEW_MS=0
|
|
|
|
# Notification retention period in milliseconds (default: 7 days)
|
|
NOTIF_RETENTION_MS=604800000
|