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/#/
| |