mirror of
https://gitee.com/pnoker/iot-dc3.git
synced 2026-11-01 10:41:52 +08:00
Bring 07-observability and 08-runtime up to the comment grammar the other seed files (02-06) already follow — DDL text itself is untouched (verified: comment- and whitespace-stripped comparison against HEAD is identical for both files): - 08: every table gets the "-- Table structure for" section banner, a file-level map of the runtime coordination blocks, per-column inline comments aligned within each table (mirroring the COMMENT ON statements), and one-line purpose comments above each index (claim scans, tenant timelines, sweepers). The stray compose-role note moves into the file header where it belongs. - 07: the 1-hour cagg index and realtime ALTER get the same comments their 1-minute siblings already carry. The fingerprint hash covers these files verbatim, comments included, so dc3/bin/schema_fingerprint.py --sync rolls the embedded ddl_hash and the four distributed defaults to the new canonical value (8297d4b5… → 51468116…). Co-Authored-By: Claude Code <noreply@anthropic.com>
102 lines
3.9 KiB
Bash
102 lines
3.9 KiB
Bash
#
|
|
# Copyright 2016-present the IoT DC3 original author or authors.
|
|
#
|
|
# This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU Affero General Public License as
|
|
# published by the Free Software Foundation, either version 3 of the
|
|
# License, or (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU Affero General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU Affero General Public License
|
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
#
|
|
|
|
# Local source-run environment for IDE, EnvFile plugins, or Maven runs.
|
|
# This file mirrors the "Local source-run defaults" section in ../../.env.example.
|
|
# It intentionally excludes Compose-only variables such as DC3_IMAGE_* and DC3_*_PORT.
|
|
|
|
# Postgres
|
|
export POSTGRES_HOST=localhost
|
|
export POSTGRES_PORT=35432
|
|
export POSTGRES_USERNAME=dc3
|
|
export POSTGRES_PASSWORD=dc3dc3dc3
|
|
export POSTGRES_DB=dc3
|
|
export DC3_R2DBC_URL=r2dbc:postgresql://localhost:35432/dc3
|
|
export DC3_SCHEMA_FINGERPRINT=5146811645192cebabe055c434a2f278c92174d600581f993e69adc7a3893226
|
|
export DC3_SCHEMA_CONTRACT=r2dbc-flag-day-v1
|
|
|
|
# Message broker selection (docs/mq-brokers.md); rabbitmq is the default
|
|
export DC3_MQ_TYPE=rabbitmq
|
|
|
|
|
|
# RabbitMQ
|
|
export RABBITMQ_VIRTUAL_HOST=dc3
|
|
export RABBITMQ_HOST=localhost
|
|
export RABBITMQ_PORT=35672
|
|
export RABBITMQ_USERNAME=dc3
|
|
export RABBITMQ_PASSWORD=dc3dc3dc3
|
|
export RABBITMQ_SSL_ENABLED=false
|
|
export RABBITMQ_SSL_ALGORITHM=TLS
|
|
export RABBITMQ_SSL_VALIDATE_SERVER_CERTIFICATE=false
|
|
export RABBITMQ_SSL_VERIFY_HOSTNAME=false
|
|
|
|
# Mqtt
|
|
export MQTT_BROKER_HOST=localhost
|
|
export MQTT_BROKER_PORT=31883
|
|
export MQTT_USERNAME=dc3
|
|
export MQTT_PASSWORD=dc3dc3dc3
|
|
|
|
# gRPC
|
|
export CENTER_AUTH_HOST=localhost
|
|
export CENTER_MANAGER_HOST=localhost
|
|
export CENTER_DATA_HOST=localhost
|
|
export CENTER_AGENTIC_HOST=localhost
|
|
|
|
# Runtime
|
|
export NODE_ENV=dev
|
|
export DC3_FACADE_GRPC_DEADLINE_MS=3000
|
|
export DC3_SECURITY_KEY=dc3-dev-only-65d8aac255cffeb389f1c9d521ae9a1a # local dev only; generate your own value for real deployments
|
|
export AUTH_HMAC_SECRET=dc3-dev-only-f56ea45d339b35f8e409e55dc4eaf795 # local dev only; generate your own value for real deployments
|
|
export POINT_BATCH_SIZE=500
|
|
export POINT_BATCH_RECEIVE_TIMEOUT_MILLIS=100
|
|
export POINT_CONCURRENT_CONSUMERS=4
|
|
export POINT_MAX_CONCURRENT_CONSUMERS=16
|
|
export POINT_PREFETCH_COUNT=1000
|
|
export POINT_RETRY_MAX_RETRIES=3
|
|
export POINT_RETRY_INITIAL_INTERVAL_MILLIS=1000
|
|
export POINT_RETRY_MULTIPLIER=2
|
|
export POINT_RETRY_MAX_INTERVAL_MILLIS=10000
|
|
export DC3_DRIVER_LEASE_SECONDS=30
|
|
export DC3_DRIVER_LEASE_RENEW_CRON='0/10 * * * * ?'
|
|
export DC3_DRIVER_LEASE_QUEUE_EXPIRES_MILLIS=300000
|
|
export MQTT_BATCH_SPEED=100
|
|
export MQTT_BATCH_INTERVAL=5
|
|
|
|
# Agentic fallback OpenAI-compatible provider. Normal providers are stored in dc3_model_provider.
|
|
export AGENTIC_FALLBACK_OPENAI_BASE_URL=https://api.openai.com
|
|
export AGENTIC_FALLBACK_OPENAI_API_KEY=
|
|
export AGENTIC_FALLBACK_OPENAI_MODEL=gpt-4o
|
|
export AGENTIC_FALLBACK_OPENAI_TEMPERATURE=0.7
|
|
export AGENTIC_FALLBACK_OPENAI_MAX_TOKENS=2048
|
|
export AGENTIC_MEMORY_SCHEMA_INIT=never
|
|
export AGENTIC_MEMORY_ENABLED=false
|
|
export AGENTIC_TOOL_CALLING_ENABLED=true
|
|
export AGENTIC_MEMORY_MAX_MESSAGES=50
|
|
export AGENTIC_ATTACHMENT_STORAGE_PATH=dc3/data/agentic/attachments
|
|
|
|
# Per-process overrides. Uncomment only for a single service process.
|
|
# export TCP_PORT=6270
|
|
# export UDP_PORT=6271
|
|
# export POSTGRES_SCHEMA=dc3_manager
|
|
|
|
# Gateway route overrides. Usually CENTER_*_HOST is enough for local runs.
|
|
# export GATEWAY_ROUTE_AUTH_TOKEN_URI=http://localhost:8300/
|
|
# export GATEWAY_ROUTE_AUTH_URI=http://localhost:8300
|
|
# export GATEWAY_ROUTE_MANAGER_URI=http://localhost:8400
|
|
# export GATEWAY_ROUTE_DATA_URI=http://localhost:8500
|
|
# export GATEWAY_ROUTE_AGENTIC_URI=http://localhost:8600
|