chttpd structure

This commit is contained in:
Milan Toman
2018-07-15 01:19:19 +02:00
parent b2a368e14d
commit 8bda8fb39b

View File

@@ -19,11 +19,12 @@ PATH = os.path.abspath(os.path.dirname(__file__))
# Where are we?
_SCRIPT_PATH = os.path.dirname(sys.argv[0])
# So we can load static libraries
sys.path.append(_SCRIPT_PATH)
# Certificates reside here
# Certificates fro SSL reside here
_CERT_PATH = _SCRIPT_PATH + '/.cert'
# So we can load static libraries
# sys.path.append(_SCRIPT_PATH)
# basic config for the server, the SSL part is questionable...
server_config = {
'server.socket_host': '0.0.0.0',
@@ -44,11 +45,11 @@ if __name__ == '__main__':
},
'/static': {
'tools.staticdir.on': True,
'tools.staticdir.dir': './static'
'tools.staticdir.dir': os.path.abspath(_SCRIPT_PATH + '/static')
},
'/data': {
'tools.staticdir.on': False,
'tools.staticdir.dir': './dynamic'
'tools.staticdir.dir': os.path.abspath(_SCRIPT_PATH + '/dynamic')
}
}