Merge pull request #1305 from CarlosNihelton/start-site-deeng-246

Enables variants to override site creation and startup
This commit is contained in:
Dan Bungert 2022-06-02 12:52:41 -06:00 committed by GitHub
commit a9ac5a5fb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -502,6 +502,9 @@ class SubiquityServer(Application):
controller.add_routes(app)
runner = web.AppRunner(app, keepalive_timeout=0xffffffff)
await runner.setup()
await self.start_site(runner)
async def start_site(self, runner: web.AppRunner):
site = web.UnixSite(runner, self.opts.socket)
await site.start()
# It is intended that a non-root client can connect.