Chttpd generalisation
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user