aboutsummaryrefslogtreecommitdiffstats
path: root/docs/source
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2014-11-20 11:36:29 -0600
committerChristopher Allan Webber <cwebber@dustycloud.org>2014-11-20 11:36:29 -0600
commitf44bd7dc873d6122d32f4d8619f82429096750cf (patch)
tree1919f0152de224a827ee557ae3fbdb090f5ccb0d /docs/source
parent34b755f43d9958688dbe100e2fea1b1107684662 (diff)
downloadmediagoblin-f44bd7dc873d6122d32f4d8619f82429096750cf.tar.lz
mediagoblin-f44bd7dc873d6122d32f4d8619f82429096750cf.tar.xz
mediagoblin-f44bd7dc873d6122d32f4d8619f82429096750cf.zip
Patch by Sturm: explain permissions on media directories in deployment docs
This should hopefully reduce the amount that users are confused by their media files not being available.
Diffstat (limited to 'docs/source')
-rw-r--r--docs/source/siteadmin/deploying.rst16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/source/siteadmin/deploying.rst b/docs/source/siteadmin/deploying.rst
index d049f8fb..8356f4ba 100644
--- a/docs/source/siteadmin/deploying.rst
+++ b/docs/source/siteadmin/deploying.rst
@@ -388,6 +388,18 @@ this ``nginx.conf`` file should be modeled on the following::
}
}
+The first four ``location`` directives instruct Nginx to serve the
+static and uploaded files directly rather than through the MediaGoblin
+process. This approach is faster and requires less memory.
+
+.. note::
+
+ The user who owns the Nginx process, normally ``www-data``,
+ requires execute permission on the directories ``static``,
+ ``public``, ``theme_static`` and ``plugin_static`` plus all their
+ parent directories. This user also requires read permission on all
+ the files within these directories. This is normally the default.
+
Now, nginx instance is configured to serve the MediaGoblin
application. Perform a quick test to ensure that this configuration
works. Restart nginx so it picks up your changes, with a command that
@@ -433,3 +445,7 @@ Security Considerations
and restart the server, so that it creates a new secret key.
All previous sessions will be invalidated.
+..
+ Local variables:
+ fill-column: 70
+ End: