diff --git a/nimsapi.wsgi b/nimsapi.wsgi
index 3693fce8cdad8d2ba466376a387474b8b38ba775..8a58fbbc1dcf7eb9795ce9972c45f56d82e45028 100644
--- a/nimsapi.wsgi
+++ b/nimsapi.wsgi
@@ -1,13 +1,13 @@
 #!/usr/bin/env python
 #
-# @author:  Gunnar Schaefer
+# @author:  Gunnar Schaefer, Kevin S. Hahn
 
 import os
 import sys
 import site
 
 site.addsitedir('/var/local/webapp2/lib/python2.7/site-packages')
-sys.path.append('/var/local/post')
+sys.path.append('/var/local/nims')
 os.environ['PYTHON_EGG_CACHE'] = '/tmp/python_egg_cache'
 
 
@@ -17,12 +17,18 @@ import nimsapi
 import nimsutil
 
 logfile = '/var/local/log/nimsapi.log'
-db_uri = 'mongodb://nims:cnimr750@cnifs.stanford.edu,cnibk.stanford.edu/nims?replicaSet=cni'
+db_uri = 'mongodb://coronal2.stanford.edu/nims'
+#db_uri = 'mongodb://nims:cnimr750@cnifs.stanford.edu,cnibk.stanford.edu/nims?replicaSet=cni'
 stage_path = '/scratch/upload'
 
 nimsutil.configure_log(logfile, False)
 db_client = pymongo.MongoReplicaSetClient(db_uri) if 'replicaSet' in db_uri else pymongo.MongoClient(db_uri)
 
+try:
+    pubkey = open('/var/local/nims/internims/NIMSpubkey.pub').read()
+except IOError as e:
+    pubkey = None
+
 application = nimsapi.app
-application.config = dict(stage_path=stage_path, site_id='stanford-cni')
+application.config = dict(stage_path=stage_path, site_id='demo_nims_coronal2', pubkey=pubkey)
 application.db = db_client.get_default_database()