a simple framework for nginx based tls auth with a flask example