System Settings: - Add SystemSettings.vue with Zabbix integration, SMTP/email config, SAML SSO settings - Add Setting model with key-value storage and typed values - Add settings API with caching Audit Logging: - Add AuditLog model tracking user, IP, action, entity changes - Add comprehensive audit logging to all CRUD operations: - Machines, Computers, Equipment, Network devices, VLANs, Subnets - Printers, USB devices (including checkout/checkin) - Applications, Settings, Users/Roles - Track old/new values for all field changes - Mask sensitive values (passwords, tokens) in logs User Management: - Add UsersList.vue with full user CRUD - Add Role management with granular permissions - Add 41 predefined permissions across 10 categories - Add users API with roles and permissions endpoints Reports: - Add TonerReport.vue for printer supply monitoring Dark Mode Fixes: - Fix map position section in PCForm, PrinterForm - Fix alert-warning in KnowledgeBaseDetail - All components now use CSS variables for theming CLI Commands: - Add flask seed permissions - Add flask seed settings Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
21 lines
513 B
Plaintext
21 lines
513 B
Plaintext
# Flask configuration
|
|
FLASK_APP=wsgi.py
|
|
FLASK_ENV=development
|
|
SECRET_KEY=change-this-to-a-secure-random-string
|
|
|
|
# Database
|
|
DATABASE_URL=mysql+pymysql://user:password@localhost:3306/shopdb_flask
|
|
|
|
# JWT
|
|
JWT_SECRET_KEY=change-this-to-another-secure-random-string
|
|
JWT_ACCESS_TOKEN_EXPIRES=3600
|
|
JWT_REFRESH_TOKEN_EXPIRES=2592000
|
|
|
|
# Logging
|
|
LOG_LEVEL=INFO
|
|
|
|
# Zabbix Integration (optional - for printer supply monitoring)
|
|
ZABBIX_ENABLED=false
|
|
ZABBIX_URL=http://zabbix.example.com:8080
|
|
ZABBIX_TOKEN=your-zabbix-api-token
|