<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.mediagoblin.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Beuc</id>
	<title>GNU MediaGoblin Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.mediagoblin.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Beuc"/>
	<link rel="alternate" type="text/html" href="https://wiki.mediagoblin.org/Special:Contributions/Beuc"/>
	<updated>2026-07-04T21:51:25Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.mediagoblin.org/index.php?title=Configure_MediaGoblin&amp;diff=1360</id>
		<title>Configure MediaGoblin</title>
		<link rel="alternate" type="text/html" href="https://wiki.mediagoblin.org/index.php?title=Configure_MediaGoblin&amp;diff=1360"/>
		<updated>2013-08-28T16:54:19Z</updated>

		<summary type="html">&lt;p&gt;Beuc: Disable transcoding&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= The config files =&lt;br /&gt;
&lt;br /&gt;
So basically there are two config files (and one meta-config file).&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;mediagoblin.ini:&#039;&#039;&#039; Use this to configure MediaGoblin, the application.  Want to use a different storage system?  Configure it here!&lt;br /&gt;
* &#039;&#039;&#039;paste.ini:&#039;&#039;&#039; This just actually configures the web server that launches the MediaGoblin application, and some other things (like actually sets up the applications that serve your static files).&lt;br /&gt;
&lt;br /&gt;
And then there&#039;s the meta-config file:&lt;br /&gt;
* &#039;&#039;&#039;mediagoblin/config_spec.ini:&#039;&#039;&#039; This sets the defaults for config file options and the type conversion for things in mediagoblin.ini.  Developers who add new config options should probably register them and their types here (and set some good defaults, if applicable).&lt;br /&gt;
&lt;br /&gt;
= Changing config files =&lt;br /&gt;
&lt;br /&gt;
So you want to turn on (or off) all the bells and whistles, set up mediagoblin to use a storage system running out of a distributed cluster of Commodore 64s, change your email server configuration, etc.  Where do you set all this stuff up?&lt;br /&gt;
&lt;br /&gt;
You should do the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# copy the config files&lt;br /&gt;
$ cp paste.ini paste_local.ini&lt;br /&gt;
$ cp mediagoblin.ini mediagoblin_local.ini&lt;br /&gt;
&lt;br /&gt;
# edit paste_local.ini to know where mediagoblin_local.ini is&lt;br /&gt;
$ editor paste_local.ini&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Find the line marked &amp;quot;config =&amp;quot; under [app:mediagoblin]; change to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[app:mediagoblin]&lt;br /&gt;
use = egg:mediagoblin#app&lt;br /&gt;
filter-with = beaker&lt;br /&gt;
config = %(here)s/mediagoblin_local.ini&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to use lazyserver.sh, you can run it like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./lazyserver.sh -c paste_local.ini&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, all the ./bin/gmg commands have arguments to allow you to pass in the config file.  For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./bin/gmg shell -cf mediagoblin_local.ini&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(It&#039;s important to note that the ./bin/gmg commands don&#039;t care about the paster file, they just care about the mediagoblin config file.)&lt;br /&gt;
&lt;br /&gt;
BTW, all these ./bin/gmg subcommands have help.  You can check them like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./bin/gmg shell --help&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for more info.&lt;br /&gt;
&lt;br /&gt;
= Setting up Cloud Files public storage =&lt;br /&gt;
&lt;br /&gt;
In mediagoblin.ini (or mediagoblin_local.ini), add this to the file and edit it to fit your needs.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[storage:publicstore]&lt;br /&gt;
storage_class = mediagoblin.storage.cloudfiles:CloudFilesStorage&lt;br /&gt;
cloudfiles_user = user&lt;br /&gt;
cloudfiles_api_key = 1a2b3c4d5e6f7g8h9i&lt;br /&gt;
cloudfiles_container = mediagoblin&lt;br /&gt;
&lt;br /&gt;
# Uncomment this and fill it in to set the API endpoint to anything other&lt;br /&gt;
# than Rackspace Cloud Files US&lt;br /&gt;
# cloudfiles_host = https://example.org/v1.0 &lt;br /&gt;
&lt;br /&gt;
# Only applicable if you run MediaGoblin on a Rackspace Cloud Server&lt;br /&gt;
# it routes traffic through the internal Rackspace network, this&lt;br /&gt;
# means that the bandwith is free.&lt;br /&gt;
cloudfiles_use_servicenet = false&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To make these settings work with OpenStack Object Storage (Swift) you will need to set the API endpoint (&amp;lt;code&amp;gt;cloudfiles_host&amp;lt;/code&amp;gt;) to avoid it defaulting to Rackspace Cloud Files US.&lt;br /&gt;
&lt;br /&gt;
= Attachments =&lt;br /&gt;
&lt;br /&gt;
Attachment are arbitrary files that are associated to a media entry. &lt;br /&gt;
&lt;br /&gt;
For example, it could be the GIMP .xcf file for an image, the .blend of a Blender render.&lt;br /&gt;
&lt;br /&gt;
== Hazards ==&lt;br /&gt;
&lt;br /&gt;
Attachments are not filtered or scanned and therefore present a security risk. They can be used to perform XSS attacks or to upload malicious content. Make sure your environment is safe before enabling it.&lt;br /&gt;
&lt;br /&gt;
== Allow attachments ==&lt;br /&gt;
&lt;br /&gt;
To allow attachments, add&lt;br /&gt;
&lt;br /&gt;
  allow_attachments = true&lt;br /&gt;
&lt;br /&gt;
to your mediagoblin.ini (or mediagoblin_local.ini)&lt;br /&gt;
&lt;br /&gt;
= Disable transcoding =&lt;br /&gt;
&lt;br /&gt;
Transcoding means that your video is resized or converted to another format, which usually takes a lot of time and CPU power.&lt;br /&gt;
&lt;br /&gt;
Currently transcoding is disabled for a video only if its mime-type, container, video and audio formats are all explicitly excluded at once in the configuration.&lt;br /&gt;
&lt;br /&gt;
Add this section to your &amp;lt;code&amp;gt;mediagoblin.ini&amp;lt;/code&amp;gt; to disable WebM and Ogg/Theora videos:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[media_type:mediagoblin.media_types.video]&lt;br /&gt;
[[skip_transcode]]&lt;br /&gt;
mime_types = video/webm, video/ogg, application/ogg, application/x-annodex&lt;br /&gt;
container_formats = Matroska, Ogg&lt;br /&gt;
video_codecs = VP8 video, Theora&lt;br /&gt;
audio_codecs = Vorbis,&lt;br /&gt;
dimensions_match = false&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Beuc</name></author>
	</entry>
</feed>