metadata here should really be stored_metadata.
[mediagoblin.git] / mediagoblin / config_spec.ini
CommitLineData
0fcfff5a 1[mediagoblin]
3c0411f5
PUS
2# HTML title of the pages
3html_title = string(default="GNU MediaGoblin")
4
ff6933fa
CAW
5# link to source for this MediaGoblin site
6source_link = string(default="https://gitorious.org/mediagoblin/mediagoblin")
7
8abeaf2f 8# database stuff
a45631e3 9sql_engine = string(default="sqlite:///%(here)s/mediagoblin.db")
6db23bd9
EL
10
11# This flag is used during testing to allow use of in-memory SQLite
12# databases. It is not recommended to be used on a running instance.
4a698535 13run_migrations = boolean(default=False)
6db23bd9 14
0fcfff5a 15# Where temporary files used in processing and etc are kept
3f5cf663 16workbench_path = string(default="%(here)s/user_dev/media/workbench")
0fcfff5a 17
5907154a
E
18# Where to store cryptographic sensible data
19crypto_path = string(default="%(here)s/user_dev/crypto")
20
0fcfff5a
CAW
21# Where mediagoblin-builtin static assets are kept
22direct_remote_path = string(default="/mgoblin_static/")
23
24# set to false to enable sending notices
25email_debug_mode = boolean(default=True)
2d7b6bde 26email_smtp_use_ssl = boolean(default=False)
0fcfff5a 27email_sender_address = string(default="notice@mediagoblin.example.org")
d71170ad 28email_smtp_host = string(default='')
2d7b6bde 29email_smtp_port = integer(default=0)
47364ead
JW
30email_smtp_user = string(default=None)
31email_smtp_pass = string(default=None)
0fcfff5a 32
13677ef9
RL
33# Set to false to disable registrations
34allow_registration = boolean(default=True)
35
10d7496d 36# tag parsing
86bd1f3c 37tags_max_length = integer(default=255)
10d7496d 38
20f8f50c
DT
39# Enable/disable comments
40allow_comments = boolean(default=True)
41
7c378f2c
CAW
42# Whether comments are ascending or descending
43comments_ascending = boolean(default=True)
44
6483b370 45# Enable/disable reporting
46allow_reporting = boolean(default=True)
47
9d2b0161
CAW
48# Enable/disable terms of service
49# ... Note: you can override the terms of service template on a
50# per-site basis...
732ebe0c 51show_tos = boolean(default=False)
9d2b0161 52
3f5cf663
CAW
53# By default not set, but you might want something like:
54# "%(here)s/user_dev/templates/"
55local_templates = string()
0fcfff5a
CAW
56
57# Whether or not celery is set up via an environment variable or
58# something else (and thus mediagoblin should not attempt to set it up
59# itself)
60celery_setup_elsewhere = boolean(default=False)
61
2c437493
JW
62# Whether or not users are able to upload files of any filetype with
63# their media entries -- This is useful if you want to provide the
64# source files for a media file but can also be a HUGE security risk.
65allow_attachments = boolean(default=False)
66
f1226c98 67# Cookie stuff
2dc8d249 68csrf_cookie_name = string(default='mediagoblin_csrftoken')
894fa564 69
5b1a7bae 70# Push stuff
bb025ebd 71push_urls = string_list(default=list())
5907222c
JW
72
73exif_visible = boolean(default=False)
24d310e4 74original_date_visible = boolean(default=False)
8aeb6738 75
3b47da8e
CAW
76# Theming stuff
77theme_install_dir = string(default="%(here)s/user_dev/themes/")
9a422c1f 78theme_web_path = string(default="/theme_static/")
aed7474e 79theme_linked_assets_dir = string(default="%(here)s/user_dev/theme_static/")
3b47da8e
CAW
80theme = string()
81
5ccb16ca
CAW
82# plugin default assets directory
83plugin_web_path = string(default="/plugin_static/")
84plugin_linked_assets_dir = string(default="%(here)s/user_dev/plugin_static/")
85
91a52878 86# Default user upload limit (in Mb)
001a50a8 87upload_limit = integer(default=None)
bdd22421 88
ecb45128 89# Max file size (in Mb)
53cf5b45 90max_file_size = integer(default=None)
ecb45128 91
1c7875a1 92# Privilege scheme
ce26346a 93user_privilege_scheme = string(default="uploader,commenter,reporter")
1c7875a1 94
155d234d
KD
95[jinja2]
96# Jinja2 supports more directives than the minimum required by mediagoblin.
97# This setting allows users creating custom templates to specify a list of
98# additional extensions they want to use. example value:
99# extensions = jinja2.ext.loopcontrols , jinja2.ext.with_
100extensions = string_list(default=list())
3b47da8e 101
ed797069 102[storage:publicstore]
a2468d18 103storage_class = string(default="mediagoblin.storage.filestorage:BasicFileStorage")
ed797069
E
104base_dir = string(default="%(here)s/user_dev/media/public")
105base_url = string(default="/mgoblin_media/")
106
107[storage:queuestore]
a2468d18 108storage_class = string(default="mediagoblin.storage.filestorage:BasicFileStorage")
ed797069
E
109base_dir = string(default="%(here)s/user_dev/media/queue")
110
10085b77 111[media:medium]
4f4f2531 112# Dimensions used when creating media display images.
10085b77
JW
113max_width = integer(default=640)
114max_height = integer(default=640)
115
116[media:thumb]
4f4f2531
JW
117# Dimensions used when creating media thumbnails
118# This is unfortunately not implemented in the media
119# types yet. You can help!
120# TODO: Make plugins follow the media size settings
10085b77
JW
121max_width = integer(default=180)
122max_height = integer(default=180)
894fa564 123
0fcfff5a 124[celery]
e629cde0 125# default result stuff
6bcdd4dc
LS
126CELERY_RESULT_BACKEND = string(default="database")
127CELERY_RESULT_DBURI = string(default="sqlite:///%(here)s/celery.db")
e629cde0
CAW
128
129# default kombu stuff
6bcdd4dc 130BROKER_TRANSPORT = string(default="sqlalchemy")
41098dff 131BROKER_URL = string(default="sqlite:///%(here)s/kombu.db")
e629cde0 132
0fcfff5a 133# known booleans
6bcdd4dc
LS
134CELERY_RESULT_PERSISTENT = boolean()
135CELERY_CREATE_MISSING_QUEUES = boolean()
136BROKER_USE_SSL = boolean()
137BROKER_CONNECTION_RETRY = boolean()
138CELERY_ALWAYS_EAGER = boolean()
139CELERY_EAGER_PROPAGATES_EXCEPTIONS = boolean()
140CELERY_IGNORE_RESULT = boolean()
141CELERY_TRACK_STARTED = boolean()
142CELERY_DISABLE_RATE_LIMITS = boolean()
143CELERY_ACKS_LATE = boolean()
144CELERY_STORE_ERRORS_EVEN_IF_IGNORED = boolean()
145CELERY_SEND_TASK_ERROR_EMAILS = boolean()
146CELERY_SEND_EVENTS = boolean()
147CELERY_SEND_TASK_SENT_EVENT = boolean()
148CELERYD_LOG_COLOR = boolean()
149CELERY_REDIRECT_STDOUTS = boolean()
0fcfff5a
CAW
150
151# known ints
6bcdd4dc
LS
152CELERYD_CONCURRENCY = integer()
153CELERYD_PREFETCH_MULTIPLIER = integer()
154CELERY_AMQP_TASK_RESULT_EXPIRES = integer()
155CELERY_AMQP_TASK_RESULT_CONNECTION_MAX = integer()
156REDIS_PORT = integer()
157REDIS_DB = integer()
158BROKER_PORT = integer()
159BROKER_CONNECTION_TIMEOUT = integer()
160CELERY_BROKER_CONNECTION_MAX_RETRIES = integer()
161CELERY_TASK_RESULT_EXPIRES = integer()
162CELERY_MAX_CACHED_RESULTS = integer()
163CELERY_DEFAULT_RATE_LIMIT = integer()
164CELERYD_MAX_TASKS_PER_CHILD = integer()
165CELERYD_TASK_TIME_LIMIT = integer()
166CELERYD_TASK_SOFT_TIME_LIMIT = integer()
167MAIL_PORT = integer()
168CELERYBEAT_MAX_LOOP_INTERVAL = integer()
0fcfff5a
CAW
169
170# known floats
6bcdd4dc 171CELERYD_ETA_SCHEDULER_PRECISION = float()
0fcfff5a
CAW
172
173# known lists
6bcdd4dc
LS
174CELERY_ROUTES = string_list()
175CELERY_IMPORTS = string_list()