aiohttp-devtools
aiohttp-devtools copied to clipboard
Features Request: Add HTTPS Support
I'm working on an app that must run on https even on localhost (the SSO identity provider requires it). So it'd be great to have HTTPS support.
+1 when I run the app over HTTPS, I get a mixed content warning.
Mixed Content: The page at 'https://xxxxxxxxx' was loaded over HTTPS, but requested an insecure script 'http://xxxxxx:8001/livereload.js'. This request has been blocked; the content must be served over HTTPS.
I doubt I'll look at this, but if someone wants to create a PR to support the feature, then we can add it.
Just thinking this through, if anyone wants to work on it, we are just calling run_app()
at https://github.com/aio-libs/aiohttp-devtools/blob/master/aiohttp_devtools/cli.py#L86
It appears this can be configured with an ssl_context
parameter: https://docs.aiohttp.org/en/stable/web_reference.html?highlight=run_app#aiohttp.web.run_app
So, probably an easy task if anyone wants to give it a go.