<?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: Krishna Modi</title>
    <description>The latest articles on DEV Community by Krishna Modi (@krish512).</description>
    <link>https://dev.to/krish512</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%2F108835%2F6cefae3f-e289-4185-88a3-ccc124067902.jpeg</url>
      <title>DEV Community: Krishna Modi</title>
      <link>https://dev.to/krish512</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/krish512"/>
    <language>en</language>
    <item>
      <title>Nginx with Brotli and ModSecurity</title>
      <dc:creator>Krishna Modi</dc:creator>
      <pubDate>Fri, 19 Oct 2018 20:22:07 +0000</pubDate>
      <link>https://dev.to/krish512/nginx-with-brotli-and-modsecurity-5bbp</link>
      <guid>https://dev.to/krish512/nginx-with-brotli-and-modsecurity-5bbp</guid>
      <description>&lt;p&gt;Are you using Docker for your next deployment?&lt;/p&gt;

&lt;p&gt;How about web server? Nginx? Good choice!&lt;/p&gt;

&lt;p&gt;But how do you manage security?&lt;/p&gt;

&lt;p&gt;Docker is secured already? Myth! Wake up&lt;/p&gt;

&lt;p&gt;Yes, you need to handle your own security, Docker ain't gonna do shit to help you secure things up with public accessibility to your endpoints.&lt;/p&gt;

&lt;p&gt;Well, I recently bumped up into Nginx &lt;a href="https://www.modsecurity.org/"&gt;ModSecurity&lt;/a&gt; module and found it amazing.&lt;/p&gt;

&lt;p&gt;It handles a ton of vulnerabilities and keeps your app secure from a major web and SQL vulnerabilities which otherwise were not handled by nginx default.&lt;/p&gt;

&lt;p&gt;Also, &lt;a href="https://github.com/google/brotli"&gt;Brotli&lt;/a&gt; is a much better compression offered by Google, gives 20% extra compression as compared to GZip.&lt;/p&gt;

&lt;p&gt;Wow! isn't it? So how do you use this in your deployment?&lt;/p&gt;

&lt;p&gt;It takes a lot of building and compiling and configuring to get this working. 15 mins of minimum build time guaranteed!&lt;/p&gt;

&lt;p&gt;Don't worry, I've got your back and build a Docker image for you with all these together.&lt;/p&gt;

&lt;p&gt;Try &lt;a href="https://github.com/krish512/docker_nginx_modsecurity"&gt;https://github.com/krish512/docker_nginx_modsecurity&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Latest Nginx with Modsecurity v3 and Brotli compression level 11&lt;/p&gt;

&lt;p&gt;PS: Not really promoting my repo, just helping the community with my contribution and expecting PRs raised towards the repo to make it more feature-rich.&lt;/p&gt;

</description>
      <category>nginx</category>
      <category>brotli</category>
      <category>docker</category>
      <category>modsecurity</category>
    </item>
  </channel>
</rss>
