How to add SSL to your python flask application?
SSL been a mandatory stuff in all the websites nowadays. Lets see how to configure the free letsencrypt ssl in python flask application. Setting up the SSL in python flask applications are extremely simpler than all the other tech stacks.
Prerequisite:
Already letsencrypt is installed and created the free certificate for your domain.
Lets configure the SSL now for python flask application. Include the context with the cert and privkey pem files which is auto generated or provided by letsencrypt package during the free ssl creation for your domain.
Add the same with ssl_context in the app.run in your python flask application.
import ssl
context = ('/etc/letsencrypt/live/ngdeveloper.com/cert.pem','/etc/letsencrypt/live/ngdeveloper/privkey.pem')
if __name__ == '__main__':
app.run(host='0.0.0.0',port=4999, ssl_context=context)
Yo I went ahead and got 777sxgame! What do you’ll like about it? I’m curious. Take a look! 777sxgame
Alright lads, 6666betcom is a new one I’ve been playing with. Good selection of games and some decent odds. Give it a go and see what you think! 6666betcom
Just started using djbaji and I’m kinda hooked. It’s easy to use and seems pretty fair. If you are wanting to try it check out djbaji. Could be worth checking out.
Yo, Hotwinslotcasino is where it’s at if you’re looking for some reel action! They got a bunch of different slots and a few table games I’m fond of. Give hotwinslotcasino a spin, you might get something awesome.