Python Fastapi Enable Https On Server Event