2 data_basedir = %(here)s/user_dev
5 # HTML title of the pages
6 html_title = string(default="GNU MediaGoblin")
8 # link to source for this MediaGoblin site
9 source_link = string(default="https://savannah.gnu.org/git/?group=mediagoblin")
12 sql_engine = string(default="sqlite:///%(here)s/mediagoblin.db")
14 # This flag is used during testing to allow use of in-memory SQLite
15 # databases. It is not recommended to be used on a running instance.
16 run_migrations = boolean(default=False)
18 # Where temporary files used in processing and etc are kept
19 workbench_path = string(default="%(data_basedir)s/media/workbench")
21 # Where to store cryptographic sensible data
22 crypto_path = string(default="%(data_basedir)s/crypto")
24 # Where mediagoblin-builtin static assets are kept
25 direct_remote_path = string(default="/mgoblin_static/")
27 # set to false to enable sending notices
28 email_debug_mode = boolean(default=True)
30 # Uses SSL/TLS when connecting to SMTP server
31 email_smtp_use_ssl = boolean(default=False)
33 # Uses STARTTLS when connecting to SMTP server
34 email_smtp_force_starttls = boolean(default=False)
36 # Email address which notices are sent from
37 email_sender_address = string(default="notice@mediagoblin.example.org")
39 # Hostname of SMTP server
40 email_smtp_host = string(default='')
42 # Port for SMTP server
43 email_smtp_port = integer(default=0)
45 # Username used for SMTP server
46 email_smtp_user = string(default=None)
48 # Password used for SMTP server
49 email_smtp_pass = string(default=None)
52 # Set to false to disable registrations
53 allow_registration = boolean(default=True)
56 tags_max_length = integer(default=255)
58 # Enable/disable comments
59 allow_comments = boolean(default=True)
61 # Whether comments are ascending or descending
62 comments_ascending = boolean(default=True)
64 # Enable/disable reporting
65 allow_reporting = boolean(default=True)
67 # Enable/disable terms of service
68 # ... Note: you can override the terms of service template on a
70 show_tos = boolean(default=False)
72 # By default not set, but you might want something like:
73 # "%(data_basedir)s/templates/"
74 local_templates = string()
76 # Whether or not celery is set up via an environment variable or
77 # something else (and thus mediagoblin should not attempt to set it up
79 celery_setup_elsewhere = boolean(default=False)
81 # Whether or not users are able to upload files of any filetype with
82 # their media entries -- This is useful if you want to provide the
83 # source files for a media file but can also be a HUGE security risk.
84 allow_attachments = boolean(default=False)
87 csrf_cookie_name = string(default='mediagoblin_csrftoken')
89 # Set to true to prevent browsers leaking information through Referrers
90 no_referrer = boolean(default=True)
93 push_urls = string_list(default=list())
95 exif_visible = boolean(default=False)
96 original_date_visible = boolean(default=False)
99 theme_install_dir = string(default="%(data_basedir)s/themes/")
100 theme_web_path = string(default="/theme_static/")
101 theme_linked_assets_dir = string(default="%(data_basedir)s/theme_static/")
104 # plugin default assets directory
105 plugin_web_path = string(default="/plugin_static/")
106 plugin_linked_assets_dir = string(default="%(data_basedir)s/plugin_static/")
108 # Default user upload limit (in Mb)
109 upload_limit = integer(default=None)
111 # Max file size (in Mb)
112 max_file_size = integer(default=None)
115 user_privilege_scheme = string(default="uploader,commenter,reporter")
117 # Frequency garbage collection will run (setting to 0 or false to disable)
118 # Setting units are minutes.
119 garbage_collection = integer(default=60)
122 # Jinja2 supports more directives than the minimum required by mediagoblin.
123 # This setting allows users creating custom templates to specify a list of
124 # additional extensions they want to use. example value:
125 # extensions = jinja2.ext.loopcontrols , jinja2.ext.with_
126 extensions = string_list(default=list())
128 [storage:publicstore]
129 storage_class = string(default="mediagoblin.storage.filestorage:BasicFileStorage")
130 base_dir = string(default="%(data_basedir)s/media/public")
131 base_url = string(default="/mgoblin_media/")
134 storage_class = string(default="mediagoblin.storage.filestorage:BasicFileStorage")
135 base_dir = string(default="%(data_basedir)s/media/queue")
138 # Dimensions used when creating media display images.
139 max_width = integer(default=640)
140 max_height = integer(default=640)
143 # Dimensions used when creating media thumbnails
144 # This is unfortunately not implemented in the media
145 # types yet. You can help!
146 # TODO: Make plugins follow the media size settings
147 max_width = integer(default=180)
148 max_height = integer(default=180)
151 # default result stuff
152 CELERY_RESULT_BACKEND = string(default="database")
153 CELERY_RESULT_DBURI = string(default="sqlite:///%(here)s/celery.db")
155 # default kombu stuff
156 BROKER_TRANSPORT = string(default="sqlalchemy")
157 BROKER_URL = string(default="sqlite:///%(here)s/kombu.db")
160 CELERY_RESULT_PERSISTENT = boolean()
161 CELERY_CREATE_MISSING_QUEUES = boolean()
162 BROKER_USE_SSL = boolean()
163 BROKER_CONNECTION_RETRY = boolean()
164 CELERY_ALWAYS_EAGER = boolean()
165 CELERY_EAGER_PROPAGATES_EXCEPTIONS = boolean()
166 CELERY_IGNORE_RESULT = boolean()
167 CELERY_TRACK_STARTED = boolean()
168 CELERY_DISABLE_RATE_LIMITS = boolean()
169 CELERY_ACKS_LATE = boolean()
170 CELERY_STORE_ERRORS_EVEN_IF_IGNORED = boolean()
171 CELERY_SEND_TASK_ERROR_EMAILS = boolean()
172 CELERY_SEND_EVENTS = boolean()
173 CELERY_SEND_TASK_SENT_EVENT = boolean()
174 CELERYD_LOG_COLOR = boolean()
175 CELERY_REDIRECT_STDOUTS = boolean()
178 CELERYD_CONCURRENCY = integer()
179 CELERYD_PREFETCH_MULTIPLIER = integer()
180 CELERY_AMQP_TASK_RESULT_EXPIRES = integer()
181 CELERY_AMQP_TASK_RESULT_CONNECTION_MAX = integer()
182 REDIS_PORT = integer()
184 BROKER_PORT = integer()
185 BROKER_CONNECTION_TIMEOUT = integer()
186 CELERY_BROKER_CONNECTION_MAX_RETRIES = integer()
187 CELERY_TASK_RESULT_EXPIRES = integer()
188 CELERY_MAX_CACHED_RESULTS = integer()
189 CELERY_DEFAULT_RATE_LIMIT = integer()
190 CELERYD_MAX_TASKS_PER_CHILD = integer()
191 CELERYD_TASK_TIME_LIMIT = integer()
192 CELERYD_TASK_SOFT_TIME_LIMIT = integer()
193 MAIL_PORT = integer()
194 CELERYBEAT_MAX_LOOP_INTERVAL = integer()
197 CELERYD_ETA_SCHEDULER_PRECISION = float()
200 CELERY_ROUTES = string_list()
201 CELERY_IMPORTS = string_list()