Editing Mediagoblin

From Bibliotheca Anonoma

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 38: Line 38:
}
}
</nowiki>}}
</nowiki>}}
=== uWSGI Emperor Config ===
It is a good idea to run the uWSGI apps as vassals to the uWSGI Emperor service. Install it with:
{{bc|sudo yum install uwsgi uwsgi-plugin-python3}}
Then create a uwsgi config file for mediagoblin:
{{hc|/etc/uwsgi.d/mediagoblin.ini|<nowiki>
[uwsgi]
plugin=python3
uid=mediagoblin
gid=nginx
socket=127.0.0.1:26543
virtualenv=/srv/www/mediagoblin
chdir=/srv/www/mediagoblin
ini-paste=/srv/www/mediagoblin/paste.ini
logto=/srv/www/mediagoblin/mg.log
</nowiki>}}
Most importantly, chown it to mediagoblin:nginx so that uwsgi will run the service with those permissions.
{{bc|sudo chown mediagoblin:nginx /etc/uwsgi.d/mediagoblin.ini}}
Finally, run the uwsgi Emperor service.
{{bc|sudo systemctl start uwsgi}}
If {{ic|sudo systemctl restart uwsgi}} shows you that {{ic|[emperor] vassal mediagoblin.ini is ready to accept requests}}, then enable the uwsgi service on boot:
{{bc|sudo systemctl enable uwsgi}}


=== Notes ===
=== Notes ===


# If you have SELinux, [http://nathanielca.se/fossrit/deploying-mediagoblin-2-selinux.html see this guide] to make it allow uWSGI sockets.
# If you have SELinux, [http://nathanielca.se/fossrit/deploying-mediagoblin-2-selinux.html see this guide] to make it allow uWSGI sockets.
== Celery Systemd Configs ==
You will want to seperate out the Celery process from the server, now that mediagoblin's Paste server is running under a uWSGI socket, otherwise uploads won't be processed.
You can skip the paste systemd daemon setup, since having the uwsgi service takes care of that.
http://mediagoblin.readthedocs.io/en/latest/siteadmin/configuration.html
=== Redis Broker for Celery ===
A super easy mod is to add a redis broker, which significantly helps speed the encoding process.
http://docs.celeryproject.org/en/latest/getting-started/brokers/redis.html
== Media Formats ==
=== ASCII ===
=== Music ===
install the good, bad, and ugly gstreamer plugins from epel. also gstreamer-python, and libsndfile-devel
https://wiki.centos.org/TipsAndTricks/MultimediaOnCentOS7
Then, install a specific version of numpy and such as stated in this ticket:
https://issues.mediagoblin.org/ticket/5379
You're probably better off using something like Koel though if you don't need user contributions... https://koel.phanan.net/docs/#/
Please note that all contributions to Bibliotheca Anonoma are considered to be released under the Creative Commons Attribution-ShareAlike (see Bibliotheca Anonoma:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)

Templates used on this page: