Merge remote-tracking branch 'refs/remotes/breton/new_gst10'
[larjonas-mediagoblin.git] / mediagoblin / config_spec.ini
blobf769e4eb4546e29e94c30df7ebebbda1db56b2ec
1 [DEFAULT]
2 data_basedir = %(here)s/user_dev
4 [mediagoblin]
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://gitorious.org/mediagoblin/mediagoblin")
11 # database stuff
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)
55 # tag parsing
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
69 # per-site basis...
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
78 # itself)
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)
86 # Cookie stuff
87 csrf_cookie_name = string(default='mediagoblin_csrftoken')
89 # Push stuff
90 push_urls = string_list(default=list())
92 exif_visible = boolean(default=False)
93 original_date_visible = boolean(default=False)
95 # Theming stuff
96 theme_install_dir = string(default="%(data_basedir)s/themes/")
97 theme_web_path = string(default="/theme_static/")
98 theme_linked_assets_dir = string(default="%(data_basedir)s/theme_static/")
99 theme = string()
101 # plugin default assets directory
102 plugin_web_path = string(default="/plugin_static/")
103 plugin_linked_assets_dir = string(default="%(data_basedir)s/plugin_static/")
105 # Default user upload limit (in Mb)
106 upload_limit = integer(default=None)
108 # Max file size (in Mb)
109 max_file_size = integer(default=None)
111 # Privilege scheme
112 user_privilege_scheme = string(default="uploader,commenter,reporter")
114 # Frequency garbage collection will run (setting to 0 or false to disable)
115 # Setting units are minutes.
116 garbage_collection = integer(default=60)
118 [jinja2]
119 # Jinja2 supports more directives than the minimum required by mediagoblin.
120 # This setting allows users creating custom templates to specify a list of
121 # additional extensions they want to use. example value:
122 # extensions = jinja2.ext.loopcontrols , jinja2.ext.with_
123 extensions = string_list(default=list())
125 [storage:publicstore]
126 storage_class = string(default="mediagoblin.storage.filestorage:BasicFileStorage")
127 base_dir = string(default="%(data_basedir)s/media/public")
128 base_url = string(default="/mgoblin_media/")
130 [storage:queuestore]
131 storage_class = string(default="mediagoblin.storage.filestorage:BasicFileStorage")
132 base_dir = string(default="%(data_basedir)s/media/queue")
134 [media:medium]
135 # Dimensions used when creating media display images.
136 max_width = integer(default=640)
137 max_height = integer(default=640)
139 [media:thumb]
140 # Dimensions used when creating media thumbnails
141 # This is unfortunately not implemented in the media
142 # types yet. You can help!
143 # TODO: Make plugins follow the media size settings
144 max_width = integer(default=180)
145 max_height = integer(default=180)
147 [celery]
148 # default result stuff
149 CELERY_RESULT_BACKEND = string(default="database")
150 CELERY_RESULT_DBURI = string(default="sqlite:///%(here)s/celery.db")
152 # default kombu stuff
153 BROKER_TRANSPORT = string(default="sqlalchemy")
154 BROKER_URL = string(default="sqlite:///%(here)s/kombu.db")
156 # known booleans
157 CELERY_RESULT_PERSISTENT = boolean()
158 CELERY_CREATE_MISSING_QUEUES = boolean()
159 BROKER_USE_SSL = boolean()
160 BROKER_CONNECTION_RETRY = boolean()
161 CELERY_ALWAYS_EAGER = boolean()
162 CELERY_EAGER_PROPAGATES_EXCEPTIONS = boolean()
163 CELERY_IGNORE_RESULT = boolean()
164 CELERY_TRACK_STARTED = boolean()
165 CELERY_DISABLE_RATE_LIMITS = boolean()
166 CELERY_ACKS_LATE = boolean()
167 CELERY_STORE_ERRORS_EVEN_IF_IGNORED = boolean()
168 CELERY_SEND_TASK_ERROR_EMAILS = boolean()
169 CELERY_SEND_EVENTS = boolean()
170 CELERY_SEND_TASK_SENT_EVENT = boolean()
171 CELERYD_LOG_COLOR = boolean()
172 CELERY_REDIRECT_STDOUTS = boolean()
174 # known ints
175 CELERYD_CONCURRENCY = integer()
176 CELERYD_PREFETCH_MULTIPLIER = integer()
177 CELERY_AMQP_TASK_RESULT_EXPIRES = integer()
178 CELERY_AMQP_TASK_RESULT_CONNECTION_MAX = integer()
179 REDIS_PORT = integer()
180 REDIS_DB = integer()
181 BROKER_PORT = integer()
182 BROKER_CONNECTION_TIMEOUT = integer()
183 CELERY_BROKER_CONNECTION_MAX_RETRIES = integer()
184 CELERY_TASK_RESULT_EXPIRES = integer()
185 CELERY_MAX_CACHED_RESULTS = integer()
186 CELERY_DEFAULT_RATE_LIMIT = integer()
187 CELERYD_MAX_TASKS_PER_CHILD = integer()
188 CELERYD_TASK_TIME_LIMIT = integer()
189 CELERYD_TASK_SOFT_TIME_LIMIT = integer()
190 MAIL_PORT = integer()
191 CELERYBEAT_MAX_LOOP_INTERVAL = integer()
193 # known floats
194 CELERYD_ETA_SCHEDULER_PRECISION = float()
196 # known lists
197 CELERY_ROUTES = string_list()
198 CELERY_IMPORTS = string_list()