storage.json 838 B

12345678910111213141516171819202122232425262728
  1. {
  2. "log_level": "info",
  3. "database": {
  4. "bind_address": "0.0.0.0",
  5. "rpc_port": 9004,
  6. "node_id": "microbit-db-1",
  7. "data_directory": "${DB_DATA_DIR:/var/lib/smartbotic-microbit/storage}",
  8. "migrations": {
  9. "enabled": true,
  10. "directory": "${DB_MIGRATIONS_DIR:config/migrations}",
  11. "auto_apply": true,
  12. "fail_on_error": true
  13. },
  14. "persistence": {
  15. "wal_sync_interval_ms": 100,
  16. "snapshot_interval_sec": 3600,
  17. "compression": "lz4"
  18. },
  19. "encryption": {
  20. "enabled": true,
  21. "key_file": "${DB_KEY_FILE:/var/lib/smartbotic-microbit/storage/storage.key}",
  22. "auto_generate_key": true
  23. },
  24. "replication": {
  25. "enabled": false
  26. }
  27. }
  28. }