initial code repo
[stor4nfv.git] / src / ceph / src / brag / server / config.py
diff --git a/src/ceph/src/brag/server/config.py b/src/ceph/src/brag/server/config.py
new file mode 100644 (file)
index 0000000..429a2ef
--- /dev/null
@@ -0,0 +1,52 @@
+# Server Specific Configurations
+server = {
+    'port': '8080',
+    'host': '0.0.0.0'
+}
+
+# Pecan Application Configurations
+app = {
+    'root': 'ceph_brag.controllers.root.RootController',
+    'modules': ['ceph_brag'],
+    'debug': True,
+    'errors': {
+        404: '/error/404',
+        '__force_dict__': True
+    }
+}
+
+logging = {
+    'loggers': {
+        'root': {'level': 'INFO', 'handlers': ['console']},
+        'ceph_brag': {'level': 'DEBUG', 'handlers': ['console']},
+        'py.warnings': {'handlers': ['console']},
+        '__force_dict__': True
+    },
+    'handlers': {
+        'console': {
+            'level': 'DEBUG',
+            'class': 'logging.StreamHandler',
+            'formatter': 'simple'
+        }
+    },
+    'formatters': {
+        'simple': {
+            'format': ('%(asctime)s %(levelname)-5.5s [%(name)s]'
+                       '[%(threadName)s] %(message)s')
+        }
+    }
+}
+
+sqlalchemy = {
+    'url'           : 'sqlite:////tmp/test.db',
+    'echo'          : False,
+    'encoding'      : 'utf-8'
+}
+
+
+# Custom Configurations must be in Python dictionary format::
+#
+# foo = {'bar':'baz'}
+#
+# All configurations are accessible at::
+# pecan.conf