Chttpd generalisation

This commit is contained in:
2019-05-26 18:18:26 +02:00
parent 8b4eaf0705
commit f92852e9a5

View File

@@ -6,7 +6,6 @@ a spearate application with it's own face and behavior
"""
import os
import cherrypy
import OpenSSL
import sys
# UI for weather ./weather.py
import weather
@@ -28,10 +27,7 @@ _CERT_PATH = _SCRIPT_PATH + '/.cert'
# basic config for the server, the SSL part is questionable...
server_config = {
'server.socket_host': '0.0.0.0',
'server.socket_port': 443,
'server.ssl_module': 'builtin',
'server.ssl_certificate': _CERT_PATH + '/fullchain1.pem',
'server.ssl_private_key': _CERT_PATH + '/privkey1.pem'
'server.socket_port': 80
}
# commit the config settings
cherrypy.config.update(server_config)