towerops/config
Graham McIntire 9a6369bd27
Fix agent API protobuf support and Mix.env runtime error
Fixed two critical issues preventing agent communication:

1. Fix Mix.env() runtime error in production
   - Replace Mix.env() with Application.get_env(:towerops, :env)
   - Add :env config to test.exs
   - Mix module not available in production releases

2. Add Protocol Buffers support to agent API endpoints
   - GET /api/v1/agent/config now accepts application/x-protobuf
   - POST /api/v1/agent/heartbeat now accepts application/x-protobuf
   - Added conversion functions for config/equipment/sensors/interfaces
   - Maintains JSON backward compatibility as fallback

All agent controller tests passing (14 tests, 0 failures)
2026-01-14 16:35:47 -06:00
..
config.exs Make agent Docker image configurable and update success criteria 2026-01-14 09:16:48 -06:00
dev.exs Set logger level to info in development to prevent credential exposure 2026-01-05 14:35:09 -06:00
prod.exs Remove force_ssl config since Traefik handles SSL termination 2026-01-05 13:23:38 -06:00
runtime.exs awsses 2026-01-11 14:55:07 -06:00
test.exs Fix agent API protobuf support and Mix.env runtime error 2026-01-14 16:35:47 -06:00