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
Percy2y ago
Project ID: N/A
Percy
Percy2y ago
jakeAnon
jakeAnonOP2y ago
N/A
Brody
Brody2y ago
you dont already have gunicorn?
jakeAnon
jakeAnonOP2y ago
no 😅
Brody
Brody2y ago
so you're using flasks in-built server?
jakeAnon
jakeAnonOP2y ago
atm yes
Brody
Brody2y 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
jakeAnonOP2y ago
yeah going to do some digging , thanks for the tips
Want results from more Discord servers?
Add your server