* forgot to add Exceptions
* webserver conf in a file
This commit is contained in:
parent
baafed8f38
commit
fccfba66d7
3 changed files with 91 additions and 0 deletions
|
@ -19,6 +19,7 @@ class CryptoBoxWebserver:
|
|||
#perhaps put config handling into a seperate class in CryptoBox.py?
|
||||
# [l] why do we need to map the css manually? Shouldn't the whole
|
||||
# www-data path be accessible anyway?
|
||||
'''
|
||||
cherrypy.config.configMap.update(
|
||||
{
|
||||
"/cryptobox.css": {
|
||||
|
@ -26,8 +27,10 @@ class CryptoBoxWebserver:
|
|||
"staticFilter.file": os.path.abspath("../www-data/cryptobox.css" )
|
||||
}
|
||||
})
|
||||
'''
|
||||
|
||||
def start(self):
|
||||
cherrypy.config.update(file = "cryptoboxwebserver.conf")
|
||||
cherrypy.server.start()
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue