paste.ini 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. # If you want to make changes to this file, first copy it to
  2. # paste_local.ini, then make the changes there.
  3. [DEFAULT]
  4. # Set to true to enable web-based debugging messages and etc.
  5. debug = false
  6. [pipeline:main]
  7. pipeline = errors mediagoblin
  8. [app:mediagoblin]
  9. use = egg:mediagoblin#app
  10. config = %(here)s/mediagoblin_local.ini %(here)s/mediagoblin.ini
  11. # static paths
  12. /mgoblin_media = %(here)s/user_dev/media/public
  13. /mgoblin_static = %(here)s/mediagoblin/static
  14. /theme_static = %(here)s/user_dev/theme_static
  15. /plugin_static = %(here)s/user_dev/plugin_static
  16. [loggers]
  17. keys = root
  18. [handlers]
  19. keys = console
  20. [formatters]
  21. keys = generic
  22. [logger_root]
  23. level = INFO
  24. handlers = console
  25. [handler_console]
  26. class = StreamHandler
  27. args = (sys.stderr,)
  28. level = NOTSET
  29. formatter = generic
  30. [formatter_generic]
  31. format = %(asctime)s %(levelname)-7.7s [%(name)s] %(message)s
  32. [filter:errors]
  33. use = egg:mediagoblin#errors
  34. debug = false
  35. ##############################
  36. # Server configuration options
  37. ##############################
  38. # The server that is run by default.
  39. # By default, should only be accessable locally
  40. [server:main]
  41. use = egg:mediagoblin#paste_server_selector
  42. host = 127.0.0.1
  43. port = 6543
  44. # Gunicorn settings. See http://docs.gunicorn.org/en/19.0/settings.html
  45. # for more information about configuring Gunicorn
  46. proc_name = gmg
  47. reload = true
  48. accesslog = -
  49. #######################
  50. # Helper server configs
  51. # ---------------------
  52. # If you are configuring the paste config manually, you can remove
  53. # these.
  54. # Use this if you want to run on port 6543 and have MediaGoblin be
  55. # viewable externally
  56. [server:broadcast]
  57. use = egg:Paste#http
  58. host = 0.0.0.0
  59. port = 6543
  60. # Use this if you want to connect via fastcgi
  61. [server:fcgi]
  62. use = egg:flup#fcgi_fork
  63. host = %(fcgi_host)s
  64. port = %(fcgi_port)s
  65. [server:http]
  66. use = egg:Paste#http
  67. host = %(http_host)s
  68. port = %(http_port)s