If python, node or other provided solutions aren't exactly what you looking for I've put together a short dotnet web server that seems to work with https and serves compressed unity files by default: https://github.com/ezpipeline/test-webgl
Leave a github issue post if it doesn't work as intended.