projects
/
invirt/packages/invirt-web.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use separate fcgi files for the authed and unauthed site.
[invirt/packages/invirt-web.git]
/
code
/
auth.fcgi
diff --git
a/code/main.fcgi
b/code/auth.fcgi
similarity index 74%
rename from
code/main.fcgi
rename to
code/auth.fcgi
index
b20cfeb
..
e48729a
100755
(executable)
--- a/
code/main.fcgi
+++ b/
code/auth.fcgi
@@
-1,10
+1,10
@@
#!/usr/bin/python
#!/usr/bin/python
-"""Main FastCGI entry point for web interface"""
+"""Main FastCGI entry point for authenticated web interface"""
import cherrypy
import os
import sys
import cherrypy
import os
import sys
-from main import InvirtWeb, InvirtUnauthWeb
+from main import InvirtWeb
dev = False
base_dir = os.path.dirname(__file__)
dev = False
base_dir = os.path.dirname(__file__)
@@
-42,14
+42,10
@@
if __name__ == "__main__":
}
}
}
}
- authApp = cherrypy.tree.mount(InvirtWeb(),
- '/auth',
- app_config)
- authApp.merge(conf_file)
- unauthApp = cherrypy.tree.mount(InvirtUnauthWeb(),
- '/unauth',
- app_config)
- unauthApp.merge(conf_file)
+ app = cherrypy.tree.mount(InvirtWeb(),
+ '/',
+ app_config)
+ app.merge(conf_file)
cherrypy.config.update(conf_file)
if dev:
cherrypy.config.update(conf_file)
if dev: