make local modified versions of, and one extra file that might be
helpful to look at. Let's examine these.
-mediagoblin.ini
- This is the config file for MediaGoblin, the application. If you want to
- tweak settings for MediaGoblin, you'll usually tweak them here.
+``mediagoblin.ini``
+ This is the main config file for MediaGoblin. If you want to tweak any
+ settings for MediaGoblin, you'll usually do that here.
-paste.ini
+``mediagoblin.example.ini``
+ When you run MediaGoblin for the first time, this default config is copied to
+ your new ``mediagoblin.ini``. Keep this in mind if you need to refer back to
+ the original settings.
+
+``paste.ini``
This is primarily a server configuration file, on the Python side
(specifically, on the WSGI side, via `paste deploy
<http://pythonpaste.org/deploy/>`_ / `paste script
making coding contributions to MediaGoblin, but which can be useful to
read and reference:
-mediagoblin/config_spec.ini
+``mediagoblin/config_spec.ini``
This file is actually a specification for mediagoblin.ini itself, as
a config file! It defines types and defaults. Sometimes it's a
good place to look for documentation... or to find that hidden
- ``email_smtp_use_ssl`` (default is ``False``)
- ``email_smtp_force_starttls`` (default is ``False``)
-Changing data directory
------------------------
+Changing the 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
-------------------------------
To be perfectly honest, there are quite a few options and we haven't had
-time to document them all.
+time to document them all, including Celery configuration.
So here's a cop-out section saying that if you get into trouble, hop
onto IRC and we'll help you out. Details for the IRC channel is on the
`join page`_ of the website.
.. _join page: http://mediagoblin.org/join/
-
-
-
-
-Celery
-======
-
-FIXME: List Celery configuration here.
MediaGoblin most likely isn't yet available from your operating
system's package manage, however, a basic install isn't too complex in
-and of itself. We recommend a setup that combines
-MediaGoblin, virtualenv, Waitress and Nginx on a .deb or .rpm-based
-GNU/Linux distribution.
+and of itself. We recommend a setup that combines MediaGoblin,
+virtualenv and Nginx on a .deb or .rpm-based GNU/Linux distribution.
Experts may of course choose other deployment options, including
Apache. See our `Deployment wiki page
update)
-Deploy MediaGoblin Services
----------------------------
+Configure Mediagoblin
+---------------------
Edit site configuration
~~~~~~~~~~~~~~~~~~~~~~~
Edit ``mediagoblin.ini`` and update ``email_sender_address`` to the
address you wish to be used as the sender for system-generated emails.
+You'll find more details in ":doc:`configuration`".
.. note::
may need to edit ``direct_remote_path``, ``base_dir``, and
``base_url``.
-.. note::
- The default config is stored in ``mediagoblin.example.ini`` in case
- you ever need it.
Configure MediaGoblin to use the PostgreSQL database
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To return to your regular user account after using the system account,
type ``exit`` or ``Ctrl-d``.
-.. _webserver-config:
+Deploy MediaGoblin
+------------------
+
+The configuration described below is sufficient for development and
+smaller deployments. However, for larger production deployments with
+larger processing requirements, see the
+":doc:`production-deployments`" documentation.
+
+.. _webserver-config:
-Waitress and Nginx
-~~~~~~~~~~~~~~~~~~
+Nginx as a reverse-proxy
+~~~~~~~~~~~~~~~~~~~~~~~~
This configuration example will use Nginx, however, you may use any
webserver of your choice. If you do not already have a web server,
``Ctrl-d`` to exit the mediagoblin shell.
-.. _create-log-file-dir:
-
-Create the directory for your log file:
----------------------------------------
-
-Production logs for the MediaGoblin application are kept in the
-``/var/log/mediagoblin`` directory. Create the directory and give it the
-proper permissions::
-
- sudo mkdir --parents /var/log/mediagoblin
- sudo chown --no-dereference --recursive mediagoblin:mediagoblin /var/log/mediagoblin
-
-
.. _systemd-service-files:
Run MediaGoblin as a system service
Systemd, you can use Systemd ``service files`` to manage both the Celery and
Paste processes.
+In the Systemd configuration below, MediaGoblin log files are kept in
+the ``/var/log/mediagoblin`` directory. Create the directory and give
+it the proper permissions::
+
+ sudo mkdir --parents /var/log/mediagoblin
+ sudo chown --no-dereference --recursive mediagoblin:mediagoblin /var/log/mediagoblin
+
Place the following service files in the ``/etc/systemd/system/``
directory. The first file should be named
``mediagoblin-celeryd.service``. Be sure to modify it to suit your
server that will continue to operate, even after being restarted.
Great job!
-.. note::
-
- The configuration described above is sufficient for development and
- smaller deployments. However, for larger production deployments
- with larger processing requirements, see the
- ":doc:`production-deployments`" documentation.
-.. note::
+What next?
+----------
- This configuration supports upload of images only, but MediaGoblin
- also supports other types of media, such as audio, video, PDFs and
- 3D models. For details, see ":doc:`media-types`".
+This configuration supports upload of images only, but MediaGoblin
+also supports other types of media, such as audio, video, PDFs and 3D
+models. For details, see the ":doc:`media-types`" documentation.
..
Local variables: