2022-03-02 00:59:31 +02:00
|
|
|
from reflex_cache import service_handler, util
|
2022-02-26 01:48:16 +02:00
|
|
|
|
|
|
|
CACHES = [
|
|
|
|
"https://cache.privatevoid.net",
|
|
|
|
"https://cache.nixos.org",
|
2022-03-02 00:59:31 +02:00
|
|
|
"https://max.cachix.org",
|
2022-02-26 01:48:16 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
def main():
|
2022-03-02 00:59:31 +02:00
|
|
|
server = util.ThreadingHTTPServer(
|
|
|
|
("127.0.0.1", int(util.envOr("REFLEX_PORT", "8002"))),
|
|
|
|
service_handler.ReflexHTTPServiceHandler,
|
|
|
|
)
|
2022-02-26 01:48:16 +02:00
|
|
|
server.serve_forever()
|
2022-03-02 00:59:31 +02:00
|
|
|
|
|
|
|
|
2022-02-26 01:48:16 +02:00
|
|
|
if __name__ == "__main__":
|
|
|
|
main()
|