| 1234567891011121314151617181920 |
- #!/usr/bin/env python3
- """Minimal health server for WaouW Sync Manager placeholder."""
- import asyncio
- from aiohttp import web
- async def health(request):
- return web.json_response({"status": "ok", "service": "sync-manager"})
- async def main():
- app = web.Application()
- app.router.add_get("/health", health)
- runner = web.AppRunner(app)
- await runner.setup()
- site = web.TCPSite(runner, "0.0.0.0", 7165)
- await site.start()
- while True:
- await asyncio.sleep(3600)
- if __name__ == "__main__":
- asyncio.run(main())
|