<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Humphrey Mpairwe</title>
    <description>The latest articles on DEV Community by Humphrey Mpairwe (@mjhumphrey).</description>
    <link>https://dev.to/mjhumphrey</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1021887%2F9f9dfc82-cad2-4880-b455-32e5796eb8ae.png</url>
      <title>DEV Community: Humphrey Mpairwe</title>
      <link>https://dev.to/mjhumphrey</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mjhumphrey"/>
    <language>en</language>
    <item>
      <title>Self Host your Own Restream Application using Nginx and Docker Today</title>
      <dc:creator>Humphrey Mpairwe</dc:creator>
      <pubDate>Thu, 09 Feb 2023 11:53:02 +0000</pubDate>
      <link>https://dev.to/mjhumphrey/self-host-your-own-restream-application-using-nginx-and-docker-today-2aaj</link>
      <guid>https://dev.to/mjhumphrey/self-host-your-own-restream-application-using-nginx-and-docker-today-2aaj</guid>
      <description>&lt;p&gt;Streaming content to multiple channels is something every streamer can get excited about, but their is a catch, highly-priced licenses. Well, that's where Nginx comes in as your saviour to self host your own solution.&lt;/p&gt;

&lt;p&gt;Last year, i was tasked to stream to 8 platforms all at once, &lt;strong&gt;3 Facebook pages&lt;/strong&gt;, &lt;strong&gt;2 Twitter Pages&lt;/strong&gt;, and &lt;strong&gt;3 Youtube accounts&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;Restream had limits to its own licensing, the same applied to Castr.io. So, I chose the manual way of getting things done, create the solution myself. So, i cloned and improved a solution by &lt;code&gt;Rafalfaro18&lt;/code&gt; on Github.&lt;/p&gt;

&lt;p&gt;If you are in the same situation as i was, worry not, simply follow the steps below.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Deploy a cloud server probably running a friendly distro such as Ubuntu, or CentOS.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;I use &lt;a href="https://vultr.com"&gt;Vultr&lt;/a&gt;, but if you have a Digital Ocean or Linode account, you can use that, there are no limitations.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;Login using a regular account that's a member of the Sudoers group.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://techpointmag.com/how-to-install-docker-and-docker-compose/"&gt;Install Docker and Docker Compose&lt;/a&gt; on the server.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/mjhumphrey4/self-hosted-restream-application"&gt;Clone my Github repository&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;View contents of the README file and setup your streaming platforms.&lt;/li&gt;
&lt;li&gt;Deploy the application and make sure the container is running, and allow port &lt;code&gt;1935&lt;/code&gt; through your firewall.&lt;/li&gt;
&lt;li&gt;Start sending your stream to the server, Nginx will broadcast it to all streaming platforms you set in the &lt;code&gt;.env&lt;/code&gt; file.&lt;/li&gt;
&lt;li&gt;Go to your Youtube channel or other channels you set and verify that your stream is going through.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Just like that, you can break the chains all thanks to open-source. More over, once you are done streaming your content, you can safely delete the server to avoid any extra costs billed to your account. &lt;/p&gt;

&lt;p&gt;Now, compare that to a 1 month Restream license that will remain unused when you are not streaming.&lt;/p&gt;

&lt;p&gt;I hope you find this post useful, if you do, a thumbs up would not be bad either.&lt;/p&gt;

</description>
      <category>nginx</category>
      <category>restream</category>
      <category>docker</category>
    </item>
  </channel>
</rss>
