diff options
| author | equinox <equinox@diac24.net> | 2011-09-27 02:12:04 +0200 | 
|---|---|---|
| committer | equinox <equinox@diac24.net> | 2011-09-27 02:12:04 +0200 | 
| commit | 540b67f278dd4b47f4717a22f6638e41a954b703 (patch) | |
| tree | 8bc7c221e245e996d130fb1264c53c5b6668a2bd | |
| parent | e40d460516a1eac36226fbb786387dff1685e185 (diff) | |
setup stuff
| -rw-r--r-- | .gitignore | 3 | ||||
| -rwxr-xr-x | index.py | 5 | ||||
| -rw-r--r-- | ticket.py | 5 | 
3 files changed, 10 insertions, 3 deletions
@@ -1,6 +1,9 @@ +accountservice.py  cherrypy.config  *.pyc  *.pem  *.pub  *.orig  *.key +*.svg +*.old @@ -153,7 +153,7 @@ class SubdapSite(object):  config = {  	'global': {  		'server.socket_port': 8080, -		'server.socket_host': '127.0.0.1', +		'server.socket_host': '0.0.0.0',  #		'server.socket_host': '::1',  		'tools.staticdir.root': appbase,  	}, @@ -173,6 +173,9 @@ config = {  }  if len(sys.argv) >= 2 and sys.argv[1] == 'standalone': +	import tmpl +	tmpl.myurl = lambda x: x +  	cherrypy.quickstart(SubdapSite(), "/", config)  else:  	cherrypy.config.update({'environment': 'embedded'}) @@ -1,7 +1,8 @@  import crypto, socket, time -keyfile = 'subdap-%s.key' % (socket.gethostname()) -pubfile = 'subdap-%s.pem' % (socket.gethostname()) +appbase = '/home/equinox/subdap/' +keyfile = appbase + 'subdap-%s.key' % (socket.gethostname()) +pubfile = appbase + 'subdap-%s.pem' % (socket.gethostname())  keys = ['site', 'user', 'ts', 'sig']  def tgt_create(site, user):  | 
