Files
aitbc/production/config/services.py
aitbc 43495bf170 fix: complete system architecture compliance via workflow
 Architecture Audit & Rewire Completed
- Fixed Python code path references in tests and miner files
- Updated SystemD service ReadWritePaths to use system logs
- Removed remaining production data and log directories
- Updated .gitignore for additional runtime patterns
- Created proper system directory structure
- Restarted all services for configuration changes

 FHS Compliance Achieved
- Data: /var/lib/aitbc/data 
- Config: /etc/aitbc 
- Logs: /var/log/aitbc 
- Repository: Clean of runtime files 

 Code References Fixed
- 0 repository data references 
- 0 repository config references 
- 0 repository log references 

 Services Operational
- Marketplace: Active and responding 
- Blockchain HTTP: Active and responding 
- All services using system paths 

🚀 AITBC system architecture is now fully FHS compliant!
2026-04-02 14:05:16 +02:00

62 lines
1.4 KiB
Python

import os
# Production Services Configuration
SERVICES_CONFIG = {
'blockchain': {
'host': '0.0.0.0',
'port': 8545,
'workers': 4,
'log_level': 'INFO',
'max_connections': 1000
},
'marketplace': {
'host': '0.0.0.0',
'port': 8002,
'workers': 8,
'log_level': 'INFO',
'max_connections': 5000
},
'gpu_marketplace': {
'host': '0.0.0.0',
'port': 8003,
'workers': 4,
'log_level': 'INFO',
'max_connections': 1000
},
'monitoring': {
'host': '0.0.0.0',
'port': 9000,
'workers': 2,
'log_level': 'INFO'
}
}
# Production Logging
LOGGING_CONFIG = {
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'production': {
'format': '%(asctime)s [%(levelname)s] %(name)s: %(message)s',
'datefmt': '%Y-%m-%d %H:%M:%S'
}
},
'handlers': {
'file': {
'class': 'logging.handlers.RotatingFileHandler',
'filename': '/var/log/aitbc/production/services/aitbc.log',
'maxBytes': 10485760, # 10MB
'backupCount': 5,
'formatter': 'production'
},
'console': {
'class': 'logging.StreamHandler',
'formatter': 'production'
}
},
'root': {
'level': 'INFO',
'handlers': ['file', 'console']
}
}