Add media_titleinfo template hook
[mediagoblin.git] / mediagoblin / config_spec.ini
CommitLineData
98cbe47f
CAW
1[DEFAULT]
2data_basedir = %(here)s/user_dev
3
0fcfff5a 4[mediagoblin]
3c0411f5
PUS
5# HTML title of the pages
6html_title = string(default="GNU MediaGoblin")
7
ff6933fa 8# link to source for this MediaGoblin site
9bb2291a 9source_link = string(default="https://savannah.gnu.org/git/?group=mediagoblin")
ff6933fa 10
8abeaf2f 11# database stuff
a45631e3 12sql_engine = string(default="sqlite:///%(here)s/mediagoblin.db")
6db23bd9
EL
13
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.
4a698535 16run_migrations = boolean(default=False)
6db23bd9 17
0fcfff5a 18# Where temporary files used in processing and etc are kept
98cbe47f 19workbench_path = string(default="%(data_basedir)s/media/workbench")
0fcfff5a 20
5907154a 21# Where to store cryptographic sensible data
98cbe47f 22crypto_path = string(default="%(data_basedir)s/crypto")
5907154a 23
0fcfff5a
CAW
24# Where mediagoblin-builtin static assets are kept
25direct_remote_path = string(default="/mgoblin_static/")
26
27# set to false to enable sending notices
28email_debug_mode = boolean(default=True)
7ffd4cf4
JT
29
30# Uses SSL/TLS when connecting to SMTP server
2d7b6bde 31email_smtp_use_ssl = boolean(default=False)
7ffd4cf4
JT
32
33# Uses STARTTLS when connecting to SMTP server
34email_smtp_force_starttls = boolean(default=False)
35
36# Email address which notices are sent from
0fcfff5a 37email_sender_address = string(default="notice@mediagoblin.example.org")
7ffd4cf4
JT
38
39# Hostname of SMTP server
d71170ad 40email_smtp_host = string(default='')
7ffd4cf4
JT
41
42# Port for SMTP server
2d7b6bde 43email_smtp_port = integer(default=0)
7ffd4cf4
JT
44
45# Username used for SMTP server
47364ead 46email_smtp_user = string(default=None)
7ffd4cf4
JT
47
48# Password used for SMTP server
47364ead 49email_smtp_pass = string(default=None)
0fcfff5a 50
7ffd4cf4 51
13677ef9
RL
52# Set to false to disable registrations
53allow_registration = boolean(default=True)
54
10d7496d 55# tag parsing
86bd1f3c 56tags_max_length = integer(default=255)
10d7496d 57
20f8f50c
DT
58# Enable/disable comments
59allow_comments = boolean(default=True)
60
7c378f2c
CAW
61# Whether comments are ascending or descending
62comments_ascending = boolean(default=True)
63
6483b370 64# Enable/disable reporting
65allow_reporting = boolean(default=True)
66
9d2b0161
CAW
67# Enable/disable terms of service
68# ... Note: you can override the terms of service template on a
69# per-site basis...
732ebe0c 70show_tos = boolean(default=False)
9d2b0161 71
3f5cf663 72# By default not set, but you might want something like:
98cbe47f 73# "%(data_basedir)s/templates/"
3f5cf663 74local_templates = string()
0fcfff5a
CAW
75
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
78# itself)
79celery_setup_elsewhere = boolean(default=False)
80
2c437493
JW
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.
84allow_attachments = boolean(default=False)
85
f1226c98 86# Cookie stuff
2dc8d249 87csrf_cookie_name = string(default='mediagoblin_csrftoken')
894fa564 88
f0a4c347
D
89# Set to true to prevent browsers leaking information through Referrers
90no_referrer = boolean(default=True)
91
5b1a7bae 92# Push stuff
bb025ebd 93push_urls = string_list(default=list())
5907222c
JW
94
95exif_visible = boolean(default=False)
24d310e4 96original_date_visible = boolean(default=False)
8aeb6738 97
3b47da8e 98# Theming stuff
98cbe47f 99theme_install_dir = string(default="%(data_basedir)s/themes/")
9a422c1f 100theme_web_path = string(default="/theme_static/")
98cbe47f 101theme_linked_assets_dir = string(default="%(data_basedir)s/theme_static/")
3b47da8e
CAW
102theme = string()
103
5ccb16ca
CAW
104# plugin default assets directory
105plugin_web_path = string(default="/plugin_static/")
98cbe47f 106plugin_linked_assets_dir = string(default="%(data_basedir)s/plugin_static/")
5ccb16ca 107
91a52878 108# Default user upload limit (in Mb)
001a50a8 109upload_limit = integer(default=None)
bdd22421 110
ecb45128 111# Max file size (in Mb)
53cf5b45 112max_file_size = integer(default=None)
ecb45128 113
1c7875a1 114# Privilege scheme
ce26346a 115user_privilege_scheme = string(default="uploader,commenter,reporter")
1c7875a1 116
5e5d4458
JT
117# Frequency garbage collection will run (setting to 0 or false to disable)
118# Setting units are minutes.
fbb3ee50 119garbage_collection = integer(default=60)
5e5d4458 120
155d234d
KD
121[jinja2]
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_
126extensions = string_list(default=list())
3b47da8e 127
ed797069 128[storage:publicstore]
a2468d18 129storage_class = string(default="mediagoblin.storage.filestorage:BasicFileStorage")
98cbe47f 130base_dir = string(default="%(data_basedir)s/media/public")
ed797069
E
131base_url = string(default="/mgoblin_media/")
132
133[storage:queuestore]
a2468d18 134storage_class = string(default="mediagoblin.storage.filestorage:BasicFileStorage")
98cbe47f 135base_dir = string(default="%(data_basedir)s/media/queue")
ed797069 136
10085b77 137[media:medium]
4f4f2531 138# Dimensions used when creating media display images.
10085b77
JW
139max_width = integer(default=640)
140max_height = integer(default=640)
141
142[media:thumb]
4f4f2531
JW
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
10085b77
JW
147max_width = integer(default=180)
148max_height = integer(default=180)
894fa564 149
0fcfff5a 150[celery]
e629cde0 151# default result stuff
6bcdd4dc
LS
152CELERY_RESULT_BACKEND = string(default="database")
153CELERY_RESULT_DBURI = string(default="sqlite:///%(here)s/celery.db")
e629cde0
CAW
154
155# default kombu stuff
6bcdd4dc 156BROKER_TRANSPORT = string(default="sqlalchemy")
41098dff 157BROKER_URL = string(default="sqlite:///%(here)s/kombu.db")
e629cde0 158
0fcfff5a 159# known booleans
6bcdd4dc
LS
160CELERY_RESULT_PERSISTENT = boolean()
161CELERY_CREATE_MISSING_QUEUES = boolean()
162BROKER_USE_SSL = boolean()
163BROKER_CONNECTION_RETRY = boolean()
164CELERY_ALWAYS_EAGER = boolean()
165CELERY_EAGER_PROPAGATES_EXCEPTIONS = boolean()
166CELERY_IGNORE_RESULT = boolean()
167CELERY_TRACK_STARTED = boolean()
168CELERY_DISABLE_RATE_LIMITS = boolean()
169CELERY_ACKS_LATE = boolean()
170CELERY_STORE_ERRORS_EVEN_IF_IGNORED = boolean()
171CELERY_SEND_TASK_ERROR_EMAILS = boolean()
172CELERY_SEND_EVENTS = boolean()
173CELERY_SEND_TASK_SENT_EVENT = boolean()
174CELERYD_LOG_COLOR = boolean()
175CELERY_REDIRECT_STDOUTS = boolean()
0fcfff5a
CAW
176
177# known ints
6bcdd4dc
LS
178CELERYD_CONCURRENCY = integer()
179CELERYD_PREFETCH_MULTIPLIER = integer()
180CELERY_AMQP_TASK_RESULT_EXPIRES = integer()
181CELERY_AMQP_TASK_RESULT_CONNECTION_MAX = integer()
182REDIS_PORT = integer()
183REDIS_DB = integer()
184BROKER_PORT = integer()
185BROKER_CONNECTION_TIMEOUT = integer()
186CELERY_BROKER_CONNECTION_MAX_RETRIES = integer()
187CELERY_TASK_RESULT_EXPIRES = integer()
188CELERY_MAX_CACHED_RESULTS = integer()
189CELERY_DEFAULT_RATE_LIMIT = integer()
190CELERYD_MAX_TASKS_PER_CHILD = integer()
191CELERYD_TASK_TIME_LIMIT = integer()
192CELERYD_TASK_SOFT_TIME_LIMIT = integer()
193MAIL_PORT = integer()
194CELERYBEAT_MAX_LOOP_INTERVAL = integer()
0fcfff5a
CAW
195
196# known floats
6bcdd4dc 197CELERYD_ETA_SCHEDULER_PRECISION = float()
0fcfff5a
CAW
198
199# known lists
6bcdd4dc
LS
200CELERY_ROUTES = string_list()
201CELERY_IMPORTS = string_list()