Skip to content

Instantly share code, notes, and snippets.

@FZX
FZX / gevent.py
Created April 23, 2017 10:43 — forked from scturtle/gevent.py
Let's go HTTPS!
from gevent import monkey
monkey.patch_all()
import bottle
class SSLWebServer(bottle.ServerAdapter):
def run(self, handler):
from gevent.pywsgi import WSGIServer
srv = WSGIServer((self.host, self.port), handler,
certfile='/etc/letsencrypt/live/XXX/fullchain.pem',