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 os
import cherrypy import cherrypy
import OpenSSL
import sys import sys
# UI for weather ./weather.py # UI for weather ./weather.py
import weather import weather
@@ -28,10 +27,7 @@ _CERT_PATH = _SCRIPT_PATH + '/.cert'
# basic config for the server, the SSL part is questionable... # basic config for the server, the SSL part is questionable...
server_config = { server_config = {
'server.socket_host': '0.0.0.0', 'server.socket_host': '0.0.0.0',
'server.socket_port': 443, 'server.socket_port': 80
'server.ssl_module': 'builtin',
'server.ssl_certificate': _CERT_PATH + '/fullchain1.pem',
'server.ssl_private_key': _CERT_PATH + '/privkey1.pem'
} }
# commit the config settings # commit the config settings
cherrypy.config.update(server_config) cherrypy.config.update(server_config)