https Bokeh server sessions with flask

I’m having trouble getting https connections to bokeh server through a flask app. The general topology for the stack is:

nginx → gunicorn → flask → bokeh server

Flask is handling some user authentication to view different visualizations; so, I can’t just have nginx route the paths with server blocks (this seems to be how the Bokeh Gallery handles it at Gallery — Bokeh 2.4.2 Documentation )

Please see my full question with associated .conf files on StackOverflow:

Thanks!