aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/config_spec.ini
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2014-08-10 16:27:29 -0500
committerJessica Tallon <jessica@megworld.co.uk>2014-09-24 18:13:19 +0100
commit98cbe47fb3243dc4d500a1ce1d93240f200e6f0c (patch)
tree71fba9827da8a63e31d3194461b2b46e098d2785 /mediagoblin/config_spec.ini
parent2b1e0af03b7c92b504313a2c6461190a43bc1c28 (diff)
downloadmediagoblin-98cbe47fb3243dc4d500a1ce1d93240f200e6f0c.tar.lz
mediagoblin-98cbe47fb3243dc4d500a1ce1d93240f200e6f0c.tar.xz
mediagoblin-98cbe47fb3243dc4d500a1ce1d93240f200e6f0c.zip
Updated config_spec.ini to add %(data_basedir)s and make use of it!
This commit sponsored by Loïc Grobol. Thanks!
Diffstat (limited to 'mediagoblin/config_spec.ini')
-rw-r--r--mediagoblin/config_spec.ini19
1 files changed, 11 insertions, 8 deletions
diff --git a/mediagoblin/config_spec.ini b/mediagoblin/config_spec.ini
index f3f3f7ab..dade8420 100644
--- a/mediagoblin/config_spec.ini
+++ b/mediagoblin/config_spec.ini
@@ -1,3 +1,6 @@
+[DEFAULT]
+data_basedir = %(here)s/user_dev
+
[mediagoblin]
# HTML title of the pages
html_title = string(default="GNU MediaGoblin")
@@ -13,10 +16,10 @@ sql_engine = string(default="sqlite:///%(here)s/mediagoblin.db")
run_migrations = boolean(default=False)
# Where temporary files used in processing and etc are kept
-workbench_path = string(default="%(here)s/user_dev/media/workbench")
+workbench_path = string(default="%(data_basedir)s/media/workbench")
# Where to store cryptographic sensible data
-crypto_path = string(default="%(here)s/user_dev/crypto")
+crypto_path = string(default="%(data_basedir)s/crypto")
# Where mediagoblin-builtin static assets are kept
direct_remote_path = string(default="/mgoblin_static/")
@@ -67,7 +70,7 @@ allow_reporting = boolean(default=True)
show_tos = boolean(default=False)
# By default not set, but you might want something like:
-# "%(here)s/user_dev/templates/"
+# "%(data_basedir)s/templates/"
local_templates = string()
# Whether or not celery is set up via an environment variable or
@@ -90,14 +93,14 @@ exif_visible = boolean(default=False)
original_date_visible = boolean(default=False)
# Theming stuff
-theme_install_dir = string(default="%(here)s/user_dev/themes/")
+theme_install_dir = string(default="%(data_basedir)s/themes/")
theme_web_path = string(default="/theme_static/")
-theme_linked_assets_dir = string(default="%(here)s/user_dev/theme_static/")
+theme_linked_assets_dir = string(default="%(data_basedir)s/theme_static/")
theme = string()
# plugin default assets directory
plugin_web_path = string(default="/plugin_static/")
-plugin_linked_assets_dir = string(default="%(here)s/user_dev/plugin_static/")
+plugin_linked_assets_dir = string(default="%(data_basedir)s/plugin_static/")
# Default user upload limit (in Mb)
upload_limit = integer(default=None)
@@ -123,12 +126,12 @@ extensions = string_list(default=list())
[storage:publicstore]
storage_class = string(default="mediagoblin.storage.filestorage:BasicFileStorage")
-base_dir = string(default="%(here)s/user_dev/media/public")
+base_dir = string(default="%(data_basedir)s/media/public")
base_url = string(default="/mgoblin_media/")
[storage:queuestore]
storage_class = string(default="mediagoblin.storage.filestorage:BasicFileStorage")
-base_dir = string(default="%(here)s/user_dev/media/queue")
+base_dir = string(default="%(data_basedir)s/media/queue")
[media:medium]
# Dimensions used when creating media display images.