mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-04 14:31:13 +02:00
Added create_cert.sh and ssl_options to enable SSL
This commit is contained in:
1 parent
e688d96c36
commit
99a8f5f21a
2 files changed
+90
No files matched your search
@@ -159,6 +159,14 @@ class Server(object):
|
||||
zmq.__version__,
|
||||
zmq.zmq_version()))
|
||||
kwargs = {"address": self._host}
|
||||
|
||||
ssl_options={
|
||||
"certfile": "/home/michaelgale/nas/workspace/gns3-server/gns3server/certs/gns3server.localdomain.com.crt",
|
||||
"keyfile": "/home/michaelgale/nas/workspace/gns3-server/gns3server/certs/gns3server.localdomain.com.key",
|
||||
}
|
||||
|
||||
kwargs['ssl_options'] = ssl_options
|
||||
|
||||
if parse_version(tornado.version) >= parse_version("3.1"):
|
||||
kwargs["max_buffer_size"] = 524288000 # 500 MB file upload limit
|
||||
tornado_app.listen(self._port, **kwargs)
|
||||
|
||||
Reference in new issue
Block a user