config_spec.ini 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. [DEFAULT]
  2. data_basedir = %(here)s/user_dev
  3. [mediagoblin]
  4. # HTML title of the pages
  5. html_title = string(default="GNU MediaGoblin")
  6. # link to source for this MediaGoblin site
  7. source_link = string(default="https://savannah.gnu.org/git/?group=mediagoblin")
  8. # database stuff
  9. sql_engine = string(default="sqlite:///%(here)s/mediagoblin.db")
  10. # This flag is used during testing to allow use of in-memory SQLite
  11. # databases. It is not recommended to be used on a running instance.
  12. run_migrations = boolean(default=False)
  13. # Where temporary files used in processing and etc are kept
  14. workbench_path = string(default="%(data_basedir)s/media/workbench")
  15. # Where to store cryptographic sensible data
  16. crypto_path = string(default="%(data_basedir)s/crypto")
  17. # Where mediagoblin-builtin static assets are kept
  18. direct_remote_path = string(default="/mgoblin_static/")
  19. # set to false to enable sending notices
  20. email_debug_mode = boolean(default=True)
  21. # Uses SSL/TLS when connecting to SMTP server
  22. email_smtp_use_ssl = boolean(default=False)
  23. # Uses STARTTLS when connecting to SMTP server
  24. email_smtp_force_starttls = boolean(default=False)
  25. # Email address which notices are sent from
  26. email_sender_address = string(default="notice@mediagoblin.example.org")
  27. # Hostname of SMTP server
  28. email_smtp_host = string(default='')
  29. # Port for SMTP server
  30. email_smtp_port = integer(default=0)
  31. # Username used for SMTP server
  32. email_smtp_user = string(default=None)
  33. # Password used for SMTP server
  34. email_smtp_pass = string(default=None)
  35. # Set to false to disable registrations
  36. allow_registration = boolean(default=True)
  37. # tag parsing
  38. tags_max_length = integer(default=255)
  39. # Enable/disable comments
  40. allow_comments = boolean(default=True)
  41. # Whether comments are ascending or descending
  42. comments_ascending = boolean(default=True)
  43. # Enable/disable reporting
  44. allow_reporting = boolean(default=True)
  45. # Enable/disable terms of service
  46. # ... Note: you can override the terms of service template on a
  47. # per-site basis...
  48. show_tos = boolean(default=False)
  49. # By default not set, but you might want something like:
  50. # "%(data_basedir)s/templates/"
  51. local_templates = string()
  52. # Whether or not celery is set up via an environment variable or
  53. # something else (and thus mediagoblin should not attempt to set it up
  54. # itself)
  55. celery_setup_elsewhere = boolean(default=False)
  56. # Whether or not users are able to upload files of any filetype with
  57. # their media entries -- This is useful if you want to provide the
  58. # source files for a media file but can also be a HUGE security risk.
  59. allow_attachments = boolean(default=False)
  60. # Cookie stuff
  61. csrf_cookie_name = string(default='mediagoblin_csrftoken')
  62. # Push stuff
  63. push_urls = string_list(default=list())
  64. exif_visible = boolean(default=False)
  65. original_date_visible = boolean(default=False)
  66. # Theming stuff
  67. theme_install_dir = string(default="%(data_basedir)s/themes/")
  68. theme_web_path = string(default="/theme_static/")
  69. theme_linked_assets_dir = string(default="%(data_basedir)s/theme_static/")
  70. theme = string()
  71. # plugin default assets directory
  72. plugin_web_path = string(default="/plugin_static/")
  73. plugin_linked_assets_dir = string(default="%(data_basedir)s/plugin_static/")
  74. # Default user upload limit (in Mb)
  75. upload_limit = integer(default=None)
  76. # Max file size (in Mb)
  77. max_file_size = integer(default=None)
  78. # Privilege scheme
  79. user_privilege_scheme = string(default="uploader,commenter,reporter")
  80. # Frequency garbage collection will run (setting to 0 or false to disable)
  81. # Setting units are minutes.
  82. garbage_collection = integer(default=60)
  83. [jinja2]
  84. # Jinja2 supports more directives than the minimum required by mediagoblin.
  85. # This setting allows users creating custom templates to specify a list of
  86. # additional extensions they want to use. example value:
  87. # extensions = jinja2.ext.loopcontrols , jinja2.ext.with_
  88. extensions = string_list(default=list())
  89. [storage:publicstore]
  90. storage_class = string(default="mediagoblin.storage.filestorage:BasicFileStorage")
  91. base_dir = string(default="%(data_basedir)s/media/public")
  92. base_url = string(default="/mgoblin_media/")
  93. [storage:queuestore]
  94. storage_class = string(default="mediagoblin.storage.filestorage:BasicFileStorage")
  95. base_dir = string(default="%(data_basedir)s/media/queue")
  96. [media:medium]
  97. # Dimensions used when creating media display images.
  98. max_width = integer(default=640)
  99. max_height = integer(default=640)
  100. [media:thumb]
  101. # Dimensions used when creating media thumbnails
  102. # This is unfortunately not implemented in the media
  103. # types yet. You can help!
  104. # TODO: Make plugins follow the media size settings
  105. max_width = integer(default=180)
  106. max_height = integer(default=180)
  107. [celery]
  108. # default result stuff
  109. CELERY_RESULT_BACKEND = string(default="database")
  110. CELERY_RESULT_DBURI = string(default="sqlite:///%(here)s/celery.db")
  111. # default kombu stuff
  112. BROKER_TRANSPORT = string(default="sqlalchemy")
  113. BROKER_URL = string(default="sqlite:///%(here)s/kombu.db")
  114. # known booleans
  115. CELERY_RESULT_PERSISTENT = boolean()
  116. CELERY_CREATE_MISSING_QUEUES = boolean()
  117. BROKER_USE_SSL = boolean()
  118. BROKER_CONNECTION_RETRY = boolean()
  119. CELERY_ALWAYS_EAGER = boolean()
  120. CELERY_EAGER_PROPAGATES_EXCEPTIONS = boolean()
  121. CELERY_IGNORE_RESULT = boolean()
  122. CELERY_TRACK_STARTED = boolean()
  123. CELERY_DISABLE_RATE_LIMITS = boolean()
  124. CELERY_ACKS_LATE = boolean()
  125. CELERY_STORE_ERRORS_EVEN_IF_IGNORED = boolean()
  126. CELERY_SEND_TASK_ERROR_EMAILS = boolean()
  127. CELERY_SEND_EVENTS = boolean()
  128. CELERY_SEND_TASK_SENT_EVENT = boolean()
  129. CELERYD_LOG_COLOR = boolean()
  130. CELERY_REDIRECT_STDOUTS = boolean()
  131. # known ints
  132. CELERYD_CONCURRENCY = integer()
  133. CELERYD_PREFETCH_MULTIPLIER = integer()
  134. CELERY_AMQP_TASK_RESULT_EXPIRES = integer()
  135. CELERY_AMQP_TASK_RESULT_CONNECTION_MAX = integer()
  136. REDIS_PORT = integer()
  137. REDIS_DB = integer()
  138. BROKER_PORT = integer()
  139. BROKER_CONNECTION_TIMEOUT = integer()
  140. CELERY_BROKER_CONNECTION_MAX_RETRIES = integer()
  141. CELERY_TASK_RESULT_EXPIRES = integer()
  142. CELERY_MAX_CACHED_RESULTS = integer()
  143. CELERY_DEFAULT_RATE_LIMIT = integer()
  144. CELERYD_MAX_TASKS_PER_CHILD = integer()
  145. CELERYD_TASK_TIME_LIMIT = integer()
  146. CELERYD_TASK_SOFT_TIME_LIMIT = integer()
  147. MAIL_PORT = integer()
  148. CELERYBEAT_MAX_LOOP_INTERVAL = integer()
  149. # known floats
  150. CELERYD_ETA_SCHEDULER_PRECISION = float()
  151. # known lists
  152. CELERY_ROUTES = string_list()
  153. CELERY_IMPORTS = string_list()