.env.example 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. # Cline Development Environment Variables
  2. # Copy this file to .env and fill in your actual values
  3. # Values should be obtained from 1Password shared vault for development
  4. # ============================================================================
  5. # DEVELOPMENT FLAGS
  6. # Recomend not changing these unless you know what you're doing they are set by the launch.json normally
  7. # ============================================================================
  8. # IS_DEV=true
  9. # CLINE_ENVIRONMENT=local
  10. # ============================================================================
  11. # POSTHOG TELEMETRY (Existing)
  12. # ============================================================================
  13. # Get these values from 1Password shared vault
  14. TELEMETRY_SERVICE_API_KEY=your-posthog-telemetry-api-key
  15. ERROR_SERVICE_API_KEY=your-posthog-error-tracking-api-key
  16. # ============================================================================
  17. # OPENTELEMETRY (Optional - for advanced telemetry)
  18. # ============================================================================
  19. # OpenTelemetry provides flexible telemetry collection with multiple export options
  20. # Can run alongside PostHog or independently
  21. # Primary focus: Logs (events), with optional metrics support
  22. # Enable OpenTelemetry (set to 1 to enable)
  23. # OTEL_TELEMETRY_ENABLED=1
  24. # Exporters: "console" for local debugging, "otlp" for remote collector
  25. # Logs are the primary signal (recommended)
  26. # OTEL_LOGS_EXPORTER=console
  27. # OTEL_METRICS_EXPORTER=otlp
  28. # OTLP Protocol: "grpc", "http/json", or "http/protobuf"
  29. # OTEL_EXPORTER_OTLP_PROTOCOL=grpc
  30. # OTLP Endpoint (without /v1/logs or /v1/metrics path - auto-appended)
  31. # For gRPC: use "localhost:4317" (no http:// prefix)
  32. # For HTTP: use "http://localhost:4318"
  33. # OTEL_EXPORTER_OTLP_ENDPOINT=localhost:4317
  34. # OTLP Headers (for authentication, e.g., bearer tokens)
  35. # OTEL_EXPORTER_OTLP_HEADERS=authorization=Bearer your-token-here
  36. # Use insecure gRPC connections (for local testing only, NOT for production)
  37. # OTEL_EXPORTER_OTLP_INSECURE=true
  38. # Metric export interval in milliseconds (default: 60000)
  39. # OTEL_METRIC_EXPORT_INTERVAL=10000
  40. # Batch configuration for logs (optional)
  41. # OTEL_LOG_BATCH_SIZE=512 # Max logs per batch (default: 512)
  42. # OTEL_LOG_BATCH_TIMEOUT=5000 # Max wait time in ms (default: 5000)
  43. # OTEL_LOG_MAX_QUEUE_SIZE=2048 # Max queue size (default: 2048)
  44. # Enable detailed export diagnostics (for debugging)
  45. # TEL_DEBUG_DIAGNOSTICS=true
  46. # Advanced: Separate endpoints for metrics and logs (optional)
  47. # OTEL_EXPORTER_OTLP_METRICS_PROTOCOL=http/protobuf
  48. # OTEL_EXPORTER_OTLP_METRICS_ENDPOINT=http://metrics.example.com:4318
  49. # OTEL_EXPORTER_OTLP_LOGS_PROTOCOL=grpc
  50. # OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=logs.example.com:4317
  51. # Example configurations:
  52. #
  53. # Console debugging (logs only):
  54. # OTEL_TELEMETRY_ENABLED=true
  55. # OTEL_LOGS_EXPORTER=console
  56. # TEL_DEBUG_DIAGNOSTICS=true
  57. #
  58. # OTLP with gRPC (insecure, for local testing):
  59. # OTEL_TELEMETRY_ENABLED=true
  60. # OTEL_LOGS_EXPORTER=otlp
  61. # OTEL_EXPORTER_OTLP_PROTOCOL=grpc
  62. # OTEL_EXPORTER_OTLP_ENDPOINT=localhost:4317
  63. # OTEL_EXPORTER_OTLP_INSECURE=true
  64. # OTEL_EXPORTER_OTLP_HEADERS=authorization=Bearer your-token
  65. #
  66. # OTLP with HTTP/JSON (production):
  67. # OTEL_TELEMETRY_ENABLED=true
  68. # OTEL_LOGS_EXPORTER=otlp
  69. # OTEL_EXPORTER_OTLP_PROTOCOL=http/json
  70. # OTEL_EXPORTER_OTLP_ENDPOINT=https://otel.example.com
  71. # OTEL_EXPORTER_OTLP_HEADERS=authorization=Bearer your-token
  72. # ============================================================================
  73. # OBJECT STORE CONFIGURATION
  74. # ============================================================================
  75. # TO ENABLE S3 OR R2 STORAGE, UNCOMMENT AND FILL IN THE FOLLOWING:
  76. # CLINE_STORAGE_ADAPTER="s3" # Options: "s3" or "r2"
  77. # CLINE_STORAGE_BUCKET="cline"
  78. # CLINE_STORAGE_ACCESS_KEY_ID="key"
  79. # CLINE_STORAGE_SECRET_ACCESS_KEY="secrets"
  80. #
  81. # [OPTIONAL FIELDS FOR R2]
  82. # CLINE_STORAGE_ACCOUNT_ID = "account-id"
  83. # Default R2 endpoint (if not set): "https://<CLINE_STORAGE_ACCOUNT_ID>.r2.cloudflarestorage.com"
  84. # CLINE_STORAGE_ENDPOINT = "http://localhost:8333"
  85. #
  86. # [OPTIONAL FIELDS FOR S3]
  87. # CLINE_STORAGE_REGION = "us-west-1" # AWS Bucket Region (default: "us-east-1")
  88. # Default S3 endpoint (if not set): "https://s3.<CLINE_STORAGE_REGION>.amazonaws.com"
  89. # CLINE_STORAGE_ENDPOINT = "http://localhost:8333"
  90. #
  91. # [OPTIONAL FIELDS FOR ALL STORAGE TYPES]
  92. # CLINE_STORAGE_SYNC_INTERVAL_MS = 30000 # Interval for sync worker in milliseconds
  93. # CLINE_STORAGE_SYNC_MAX_RETRIES = 5 # Max retries for failed sync operations
  94. # CLINE_STORAGE_SYNC_BATCH_SIZE = 10 # Number of files to sync in each batch
  95. # CLINE_STORAGE_SYNC_BACKFILL_ENABLED = false # Enable backfill of existing data on startup
  96. # ============================================================================
  97. # OPTIONAL DEVELOPMENT SETTINGS
  98. # ============================================================================
  99. # Uncomment and modify as needed for development
  100. # Multi-root workspace debugging
  101. # MULTI_ROOT_TRACE=true
  102. # gRPC recorder for testing
  103. # GRPC_RECORDER_ENABLED=true
  104. # GRPC_RECORDER_FILE_NAME=test-recording
  105. # Test mode
  106. # E2E_TEST=true
  107. # IS_TEST=true
  108. # ============================================================================
  109. # USAGE INSTRUCTIONS
  110. # ============================================================================
  111. # 1. Copy this file: cp .env.example .env
  112. # 2. Get PostHog keys from 1Password shared vault
  113. # 3. Update the values in .env
  114. # 4. The .env file is gitignored for security