Fix ascii media type for Python 3. Fix by 宋文武 (iyzsong)
[mediagoblin.git] / paste.ini
index b859251e460e2445735ed6828dafcd1e334b5c18..ce3f01e85d7b8e8d0a47cd5a984151cd46d1b047 100644 (file)
--- a/paste.ini
+++ b/paste.ini
@@ -6,7 +6,8 @@
 debug = false
 
 [pipeline:main]
-pipeline = errors mediagoblin
+# pipeline = errors mediagoblin
+pipeline = mediagoblin
 
 [app:mediagoblin]
 use = egg:mediagoblin#app
@@ -51,11 +52,35 @@ debug = false
 # The server that is run by default.
 # By default, should only be accessable locally
 [server:main]
-use = egg:gunicorn
+use = egg:waitress#main
 host = 127.0.0.1
 port = 6543
-# Gunicorn settings. See http://docs.gunicorn.org/en/19.0/settings.html
-# for more information about configuring Gunicorn
-proc_name = gmg
-reload = true
-accesslog = -
+# # Gunicorn settings. See http://docs.gunicorn.org/en/19.0/settings.html
+# # for more information about configuring Gunicorn
+# proc_name = gmg
+# reload = true
+# accesslog = -
+
+#######################
+# Helper server configs
+# ---------------------
+#   If you are configuring the paste config manually, you can remove
+#   these.
+
+# Use this if you want to run on port 6543 and have MediaGoblin be
+# viewable externally
+[server:broadcast]
+use = egg:waitress#main
+host = 0.0.0.0
+port = 6543
+
+# Use this if you want to connect via fastcgi
+[server:fcgi]
+use = egg:flup#fcgi_fork
+host = %(fcgi_host)s
+port = %(fcgi_port)s
+
+[server:http]
+use = egg:waitress#main
+host = %(http_host)s
+port = %(http_port)s