Skip to content

May the force be with your software

I am Giray Coskun. A software engineer graduated from Sabanci University, Computer Science and Engineering.

This blogs are going to be software related. I have also another writing section that I frequently use myself so that is more like a notebook.

📓 Developer's Notebook

Sharing data in a Flask App accross Gunicorn Workers

I have a flask app, I wanted to deploy it to so I configured NGinx proxy and I was already using Cloudflare. Thus the app started running behind 2 proxy servers. Until this point I was not using flask sessions to keep data so everyhting was running fine. You could ask how flask sessions was a problem. Well the feature is not the problem but my naive setting the SECRET_KEY was.

import secrets
SECRET_KEY = secrets.token_hex(32)