summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rwxr-xr-xindex.py5
-rw-r--r--ticket.py5
3 files changed, 10 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 07bf945..4e829e6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,9 @@
+accountservice.py
cherrypy.config
*.pyc
*.pem
*.pub
*.orig
*.key
+*.svg
+*.old
diff --git a/index.py b/index.py
index 8aa1c35..6432919 100755
--- a/index.py
+++ b/index.py
@@ -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'})
diff --git a/ticket.py b/ticket.py
index c8875d1..e7609ff 100644
--- a/ticket.py
+++ b/ticket.py
@@ -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):