# ThingsBoard Configuration
# Basic settings for ThingsBoard CE

database:
  type: "${DATABASE_TYPE:sql}"
  entities:
    type: "${DATABASE_ENTITIES_TYPE:sql}"
  
spring:
  datasource:
    url: "${SPRING_DATASOURCE_URL:jdbc:postgresql://thingsboard-postgres:5432/thingsboard}"
    username: "${SPRING_DATASOURCE_USERNAME:postgres}"
    password: "${SPRING_DATASOURCE_PASSWORD:Digitribe972}"
    hikari:
      maximumPoolSize: "${DATABASE_MAX_CONNECTIONS:100}"
      
# MQTT settings
mqtt:
  bind_address: "${MQTT_BIND_ADDRESS:0.0.0.0}"
  bind_port: "${MQTT_BIND_PORT:1883}"
  enabled: "${MQTT_ENABLED:true}"
  
# HTTP settings  
http:
  bind_address: "${HTTP_BIND_ADDRESS:0.0.0.0}"
  bind_port: "${HTTP_BIND_PORT:8080}"
  enabled: "${HTTP_ENABLED:true}"
  
# Transport configuration
transport:
  tenant:
    mqtt:
      enabled: "${MQTT_ENABLED:true}"
    http:
      enabled: "${HTTP_ENABLED:true}"
