R
Railway16mo ago
jakeAnon

Making flask app secure

Hello I have a simple flask app that is triggering some devices in my facility. I currently have cors and a secret-key needed in header in order for request to go through. How can I make my flask app more secure? do I need to set up gunicorn and nginx when deploying on railway? Open to any advice thank you ps. I am not expecting a ton of traffic to be hitting my endpoint
9 Replies
Percy
Percy16mo ago
Project ID: N/A
Percy
Percy16mo ago
jakeAnon
jakeAnon16mo ago
N/A
Brody
Brody16mo ago
you dont already have gunicorn?
jakeAnon
jakeAnon16mo ago
no 😅
Brody
Brody16mo ago
so you're using flasks in-built server?
jakeAnon
jakeAnon16mo ago
atm yes
Brody
Brody16mo ago
funky use gunicorn, though it's not like that increases security I'm sure there's lots of tutorials on securing a flask + gunicorn app
jakeAnon
jakeAnon16mo ago
yeah going to do some digging , thanks for the tips