diff options
| author | Patrick Uiterwijk <puiterwijk@redhat.com> | 2015-03-17 12:01:06 +0000 |
|---|---|---|
| committer | Patrick Uiterwijk <puiterwijk@redhat.com> | 2015-03-17 12:01:06 +0000 |
| commit | 7da6565a64f0ece11199625f91e4a1b3f2f1d981 (patch) | |
| tree | 2f7313b4ab597c4542b9b6e1118d809b83efbcab /roles/ask | |
| parent | 25996ac3270d4d6aec2bb54f92c1033fdcce207b (diff) | |
| download | ansible-7da6565a64f0ece11199625f91e4a1b3f2f1d981.tar.gz ansible-7da6565a64f0ece11199625f91e4a1b3f2f1d981.tar.xz ansible-7da6565a64f0ece11199625f91e4a1b3f2f1d981.zip | |
Move the media directories to gluster
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Diffstat (limited to 'roles/ask')
| -rw-r--r-- | roles/ask/files/askbot.conf | 4 | ||||
| -rw-r--r-- | roles/ask/templates/settings.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/roles/ask/files/askbot.conf b/roles/ask/files/askbot.conf index 631ffb793..34877ce3e 100644 --- a/roles/ask/files/askbot.conf +++ b/roles/ask/files/askbot.conf @@ -35,9 +35,9 @@ ExpiresByType image/gif "access plus 1 week" Allow from all </Location> -Alias /upfiles/ /var/lib/askbot/upfiles/ask/ +Alias /upfiles/ /srv/askbot-uploaded/ -<Directory /var/lib/askbot/upfiles/ask> +<Directory /srv/askbot-uploaded> Order deny,allow Allow from all </Directory> diff --git a/roles/ask/templates/settings.py b/roles/ask/templates/settings.py index 57ecea0c8..3328e7730 100644 --- a/roles/ask/templates/settings.py +++ b/roles/ask/templates/settings.py @@ -78,7 +78,7 @@ LANGUAGE_CODE = 'en' # Absolute path to the directory that holds uploaded media # Example: "/home/media/media.lawrence.com/" -MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'askbot', 'upfiles') +MEDIA_ROOT = '/srv/askbot-uploaded' MEDIA_URL = '/upfiles/' STATIC_URL = '/m/'#this must be different from MEDIA_URL |
