diff options
author | Jessica Tallon <jessica@megworld.co.uk> | 2014-09-29 09:04:30 +0100 |
---|---|---|
committer | Jessica Tallon <jessica@megworld.co.uk> | 2014-09-29 09:04:30 +0100 |
commit | ffa9346cefcfc83d66b6da75ea4b4b8df682b08d (patch) | |
tree | b263f40a8e68d85047324be05990e3005c0c445a /docs | |
parent | becd160703451a77481a453b7bd33b8e594b31f5 (diff) | |
parent | 11f0e2f89bade7f3d38665968adf478c3b039c5d (diff) | |
download | mediagoblin-ffa9346cefcfc83d66b6da75ea4b4b8df682b08d.tar.lz mediagoblin-ffa9346cefcfc83d66b6da75ea4b4b8df682b08d.tar.xz mediagoblin-ffa9346cefcfc83d66b6da75ea4b4b8df682b08d.zip |
Merge branch '942-default-location'
* 942-default-location:
Add documentation on changing data dir and Fix stylistic changes
Updated config_spec.ini to add %(data_basedir)s and make use of it!
defaults now pulled from a mashup of mediagoblin.ini and config_spec.ini
Diffstat (limited to 'docs')
-rw-r--r-- | docs/source/siteadmin/configuration.rst | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/docs/source/siteadmin/configuration.rst b/docs/source/siteadmin/configuration.rst index 3da5cdd9..dd0d6cd9 100644 --- a/docs/source/siteadmin/configuration.rst +++ b/docs/source/siteadmin/configuration.rst @@ -109,6 +109,34 @@ they sound like. - email_smtp_user - email_smtp_pass +Changing data directory +----------------------- + +MediaGoblin by default stores your data in wherever ``data_basedir``. +This can be changed by changing the value in your ``mediagoblin.ini`` file +for example:: + + [DEFAULT] + data_basedir = "/var/mediagoblin/user_data" + +For efficiency reasons MediaGoblin doesn't serve these files itself and +instead leaves that to the webserver. You will have to alter the location +to match the path in ``data_basedir``. + +If you use ``lazyserver.sh`` you need to change the ``paste.ini`` file:: + + [app:mediagoblin] + /mgoblin_media = /var/mediagoblin/user_data + +If you use nginx you need to change the config:: + + # Instance specific media: + location /mgoblin_media/ { + alias /var/mediagoblin/user_data; + } + +Once you have done this you will need to move any existing media you had in the +old directory to the new directory so existing media still can be displayed. All other configuration changes ------------------------------- |