server.py 567 B

1234567891011121314151617181920
  1. #!/usr/bin/env python3
  2. """Minimal health server for WaouW Sync Manager placeholder."""
  3. import asyncio
  4. from aiohttp import web
  5. async def health(request):
  6. return web.json_response({"status": "ok", "service": "sync-manager"})
  7. async def main():
  8. app = web.Application()
  9. app.router.add_get("/health", health)
  10. runner = web.AppRunner(app)
  11. await runner.setup()
  12. site = web.TCPSite(runner, "0.0.0.0", 7165)
  13. await site.start()
  14. while True:
  15. await asyncio.sleep(3600)
  16. if __name__ == "__main__":
  17. asyncio.run(main())