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