<?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: Raghu Chinnannan</title>
    <description>The latest articles on DEV Community by Raghu Chinnannan (@raghuchinnannan).</description>
    <link>https://dev.to/raghuchinnannan</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%2F312590%2F054921b1-c53b-4c95-b758-f7a25031966a.png</url>
      <title>DEV Community: Raghu Chinnannan</title>
      <link>https://dev.to/raghuchinnannan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/raghuchinnannan"/>
    <language>en</language>
    <item>
      <title>How I made my blog Faster, Cheaper &amp; Secure?</title>
      <dc:creator>Raghu Chinnannan</dc:creator>
      <pubDate>Mon, 10 Feb 2020 16:45:24 +0000</pubDate>
      <link>https://dev.to/raghuchinnannan/how-i-made-my-blog-faster-cheaper-secure-2o5o</link>
      <guid>https://dev.to/raghuchinnannan/how-i-made-my-blog-faster-cheaper-secure-2o5o</guid>
      <description>&lt;h2&gt;
  
  
  Little background
&lt;/h2&gt;

&lt;p&gt;If you had visited &lt;a href="https://raghuspeaks.com" rel="noopener noreferrer"&gt;my blog&lt;/a&gt; a few weeks back, it must have looked different, loaded slowly and there was a ton of crappy ads and it was having only basic security features.&lt;/p&gt;

&lt;h3&gt;
  
  
  Old setup
&lt;/h3&gt;

&lt;p&gt;Before this transition, the blog was using a Self-hosted version of Wordpress on a &lt;a href="https://m.do.co/c/b86d37cd0eaa" rel="noopener noreferrer"&gt;10 USD/month Digital Ocean droplet&lt;/a&gt; (2GB RAM, 1 CPU, 50GB SSD disk) served via an Apache server serving over https using free TLS (or as people generally say, SSL) certificates provided by LetsEncrypt.&lt;/p&gt;

&lt;p&gt;The DNS was handled by Cloudflare but I was not using any of there other features because of a known issue during certificate renewals via LetsEncrypt.&lt;/p&gt;

&lt;p&gt;I've also made the WordPress blog as a PWA (Progressive Web App) with the help of Service workers and it also had Onesignal push notifications enabled.&lt;/p&gt;

&lt;h3&gt;
  
  
  Issues with the old setup
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;  Even though the site had https implemented, sometimes there will be mixed content, SSL test grades will be low and were supporting old and vulnerable TLS versions such as TLSv1.0 &amp;amp; TLSv1.1.&lt;/li&gt;
&lt;li&gt;  Lighthouse report ratings were very poor.&lt;/li&gt;
&lt;li&gt;  It was not IPv6 compatible.&lt;/li&gt;
&lt;li&gt;  I've also enabled Google Ads which used to distort the site in uglier ways which you can't even imagine and the total income earned from it so far was just $1.31.&lt;/li&gt;
&lt;li&gt;  The site was slow to load despite the Wordpress level optimizations I have done.&lt;/li&gt;
&lt;li&gt;  Maintaining the PHP versions, Wordpress &amp;amp; Plugin versions, MySQL server was a nightmare.&lt;/li&gt;
&lt;li&gt;  There was no HTTP/2 support, no gzip compression, etc.&lt;/li&gt;
&lt;li&gt;  Since Wordpress had many known vulnerabilities hackers / even script kiddies were constantly trying to hack the site using some scripts.&lt;/li&gt;
&lt;li&gt;  Even the $10 server was not able to handle the setup due to insane traffic from bots, hack attempts and other PHP, MySQL &amp;amp; Apache related issues.&lt;/li&gt;
&lt;li&gt;  There were no Backups of the Wordpress site and DB.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Migration to the new setup
&lt;/h2&gt;

&lt;p&gt;To mitigate the above-mentioned issues and also to experiment, I've decided to do something about it and first came up with the below objectives and performed the improvements keeping those objectives in mind.&lt;/p&gt;

&lt;h3&gt;
  
  
  Objectives
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Fast &amp;amp; Responsive&lt;/strong&gt; - I've decided that the blog should load very fast on all devices and all connection speeds.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Safe &amp;amp; Secure&lt;/strong&gt; - The blog should be very secure and should employ all the best security practices and get an &lt;strong&gt;A+&lt;/strong&gt; on the SSL Labs test and should support the latest protocols.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Cheaper &amp;amp; Easier&lt;/strong&gt; - The blog should fulfill the above objectives without any added cost, possibly reduce the cost as well as easier to maintain.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;With these objectives in mind, I performed the below things.&lt;/p&gt;

&lt;h3&gt;
  
  
  Migration from Wordpress to Hugo
&lt;/h3&gt;

&lt;p&gt;I decided to go with a Static Site Generator because I can easily create blog posts using Markdown and I use markdown almost every day and also Static pages are fast, secure and can be cached locally as well as using some CDN like CloudFlare.&lt;/p&gt;

&lt;p&gt;The hardest task was to decide on a good Static Site Generator. After considering Jekyll &amp;amp; Hugo, I decided to go with Hugo as it was recommended by many colleagues, mostly because it's written in Go (They are big fans of Go). &lt;/p&gt;

&lt;p&gt;There was a bit of learning curve but somehow I got it (I think.). And the next hardest part was to convert your Wordpress posts into Markdown format.&lt;/p&gt;

&lt;h4&gt;
  
  
  Wordpress XML to MD conversion
&lt;/h4&gt;

&lt;p&gt;First, I exported the Wordpress posts into XML format and then for converting into proper Markdown, I tried several easy methods, none of them worked. Then I followed &lt;a href="https://www.smashingmagazine.com/2019/05/switch-wordpress-hugo/#exporting-content-from-wordpress" rel="noopener noreferrer"&gt;this article&lt;/a&gt; to successfully convert the XML to MD using &lt;a href="https://github.com/palaniraja/blog2md" rel="noopener noreferrer"&gt;blog2md&lt;/a&gt; tool.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://github.com/palaniraja/blog2md" rel="noopener noreferrer"&gt;blog2md&lt;/a&gt; tool did a decent job but still, I had to edit a lot of small things in the posts and also I merged the comments into the post as well (may remove it later). &lt;/p&gt;

&lt;p&gt;Since, I had a lot of posts, editing them individually took a lot of time and I also updated a few posts with the latest details.&lt;/p&gt;

&lt;h4&gt;
  
  
  Backups on GitHub
&lt;/h4&gt;

&lt;p&gt;Previously when I was using Wordpress, once in a while I'll take DB backups and files and I'll keep them directly on my &lt;a href="https://m.do.co/c/b86d37cd0eaa" rel="noopener noreferrer"&gt;DO droplet&lt;/a&gt; itself, there were no other backup or Source Code Management done. All changed were done directly done on the live site.&lt;/p&gt;

&lt;p&gt;This time I decided to use Github as SCM as well as backups, I'll develop and test locally and then will compile the files locally and push it to Github. &lt;/p&gt;

&lt;p&gt;There is no CI/CD pipeline set up yet. As of now, I just SFTP the compiled pages directly to the server and Github merely serves as a backup and SCM tool.&lt;/p&gt;

&lt;h3&gt;
  
  
  Replaced Apache with Nginx
&lt;/h3&gt;

&lt;p&gt;I did a lot of research on whether to continue using Apache or switch to Nginx. Based on my research I did for a client earlier, I already fell in love with Nginx and decided to go with it, as it is faster and also it can perform a lot of other things. &lt;/p&gt;

&lt;p&gt;So, I installed Nginx 1.17.7 on a new DO droplet with fewer resources and configured it for my domain. By the time, I finished writing this article, Nginx 1.17.8 got released and I updated it. I took almost (or maybe more than) a month to finish this article.&lt;/p&gt;

&lt;h3&gt;
  
  
  SSL certificates from LetsEncrypt
&lt;/h3&gt;

&lt;p&gt;As usual, I decided to use LetsEncrypt for generating the certificates, so installed the certbot for Nginx.&lt;/p&gt;

&lt;p&gt;I changed the &lt;em&gt;A record&lt;/em&gt; of the domain to the latest server and generated the TLS certificate and uploaded the compiled static files and saw the https certificate from LetsEncrypt authority.&lt;/p&gt;

&lt;h3&gt;
  
  
  Enabled HTTP/2, gzip compression &amp;amp; IPv6
&lt;/h3&gt;

&lt;p&gt;To make the site faster and secure, I enabled HTTP/2, gzip compression and also enabled IPv6 support.&lt;/p&gt;

&lt;h3&gt;
  
  
  Getting an A+ from SSL Labs
&lt;/h3&gt;

&lt;p&gt;I was obsessed with making the site secure and &lt;a href="https://www.ssllabs.com/ssltest/analyze.html?d=raghuspeaks.com" rel="noopener noreferrer"&gt;getting an A+ on SSL Labs&lt;/a&gt;. So, I performed the below steps to get an A+ certificate.&lt;/p&gt;

&lt;h4&gt;
  
  
  Setup CAA Records
&lt;/h4&gt;

&lt;p&gt;As stated earlier, I was managing my DNS using CloudFlare and I had set up a CAA record for &lt;code&gt;letsencrypt.org&lt;/code&gt; from there. This will prevent other CA's from issuing certificates for my domain.&lt;/p&gt;

&lt;h4&gt;
  
  
  Revoked weak &amp;amp; vulnerable TLS Suites
&lt;/h4&gt;

&lt;p&gt;As per the suggestions provided in the SSL labs, I revoked support for weak TLS suites such as TLSv1.0 and TLSv1.1 in the &lt;code&gt;optional-ssl-nginx.conf&lt;/code&gt; file.&lt;/p&gt;

&lt;h4&gt;
  
  
  Experimental TLSv1.3 support &amp;amp; TLS Fallback to TLSv1.2
&lt;/h4&gt;

&lt;p&gt;I have also enabled support for the experimental and more secure TLSv1.3 and a TLS Fallback to TLSv1.2 in the &lt;code&gt;optional-ssl-nginx.conf&lt;/code&gt; file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_prefer_server_ciphers on;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  OCSP Stapling
&lt;/h4&gt;

&lt;p&gt;Then I enabled &lt;a href="https://en.wikipedia.org/wiki/OCSP_stapling" rel="noopener noreferrer"&gt;OCSP Stapling&lt;/a&gt; to improve the security and performance in the &lt;code&gt;optional-ssl-nginx.conf&lt;/code&gt; file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;## OCSP Stapling
ssl_stapling on;
ssl_stapling_verify on;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Replaced Weak Ciphers with Strong Ciphers
&lt;/h4&gt;

&lt;p&gt;To improve security, I have replaced weak ciphers with Strong ciphers while also managing to support maximum devices.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ssl_ciphers "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA:ECDHE-ECDSA-AES128-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA256";
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Expire Headers for Caching
&lt;/h3&gt;

&lt;p&gt;To make the blog faster for regular visitors, I had setup expires header to cache locally in the browser as below.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Expires map (Before Server block)
map $sent_http_content_type $expires {
    default                    864000;
    text/html                  864000;
    text/css                   864000;
    application/javascript     864000;
    ~image/*                    864000;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Setting expires headers (Inside Server block)
expires $expires;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  HSTS Preload
&lt;/h3&gt;

&lt;p&gt;I also wanted the site to be always preloaded via https and want it included in the &lt;a href="https://hstspreload.org/?domain=raghuspeaks.com" rel="noopener noreferrer"&gt;hstspreload list&lt;/a&gt; of the most common browsers, so it is hardcoded in the browsers to always load the site via https even when the request is made by the client for the first time.&lt;/p&gt;

&lt;p&gt;So, I have added the below config for HSTS preloading and also submitted it to &lt;a href="https://hstspreload.org/?domain=raghuspeaks.com" rel="noopener noreferrer"&gt;hstspreload.org&lt;/a&gt; website.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#HSTS Preload
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload";
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;By the time I finished writing the article, the site got accepted into the &lt;a href="https://hstspreload.org/?domain=raghuspeaks.com" rel="noopener noreferrer"&gt;HSTS Preload list&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F04g2rz67ixqe7cxjubxt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F04g2rz67ixqe7cxjubxt.png" alt="raghuspeaks.com-hsts-preload" width="800" height="233"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Proxied via CloudFlare
&lt;/h3&gt;

&lt;p&gt;Even though I was using CloudFlare for DNS management, I didn't proxy the site via CloudFlare and didn't make use of all the benefits offered by CloudFlare due to a known issue in certificate renewals. &lt;/p&gt;

&lt;p&gt;This time I decided to take advantage of the benefits offered by CloudFlare despite the known issue.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff3xd9dh2td3vd0s777sy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff3xd9dh2td3vd0s777sy.png" alt="cloudflare-proxying" width="800" height="315"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Benefits of CloudFlare proxying
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;CloudFlare proxying hides the identity of the original server.&lt;/li&gt;
&lt;li&gt;Provides support for QUIC (HTTP/3).&lt;/li&gt;
&lt;li&gt;Advanced Caching.&lt;/li&gt;
&lt;li&gt;Spam detection &amp;amp; prevention.&lt;/li&gt;
&lt;li&gt;Acts as a global CDN and reduces the load on the origin server.&lt;/li&gt;
&lt;li&gt;Automatic Threat mitigation.&lt;/li&gt;
&lt;li&gt;Improves performance &amp;amp; Speed&lt;/li&gt;
&lt;li&gt;Inbuilt Firewall &amp;amp; Service workers and a lot more.&lt;/li&gt;
&lt;li&gt;Advanced security configurations.&lt;/li&gt;
&lt;li&gt;And most importantly, almost all of these features are available for free by default.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Known Issue
&lt;/h4&gt;

&lt;p&gt;The reason that I initially didn't want to use CloudFlare proxying is that there was a known issue while generating/renewing your certificates via LetsEncrypt because of proxying, the origin server was not exposed.&lt;/p&gt;

&lt;p&gt;So, every time for renewals, I had to disable proxying, renew the certificate and then again enable it. It was a bit of a pain. But I'm ready to endure it this time because the pros are a lot more significant comparing this issue.&lt;/p&gt;

&lt;p&gt;However, a colleague suggested a potential solution to resolve this issue.&lt;/p&gt;

&lt;h5&gt;
  
  
  Potential Solution
&lt;/h5&gt;

&lt;p&gt;By default, LetsEncrypt certbot uses &lt;code&gt;HTTP-01&lt;/code&gt; challenge to perform validation and that's why I'm facing this issue due to the hiding of the original server address. However, I'm told it can be replaced by the &lt;code&gt;DNS-01&lt;/code&gt; challenge to mitigate this issue and renew certificates while proxying via CloudFlare.&lt;/p&gt;

&lt;p&gt;I'll try to attempt this soon and will update it in a separate blog post.&lt;/p&gt;

&lt;h4&gt;
  
  
  CloudFlare configuration
&lt;/h4&gt;

&lt;p&gt;When I enabled CloudFlare proxying, some of the settings configured in Nginx (as mentioned above) got overwritten by the default CloudFlare configurations which didn't comply with the hstspreload required config &amp;amp; caching settings. &lt;/p&gt;

&lt;p&gt;So, I had to modify them to comply with the hstspreload requirements (similar to the Nginx config mentioned above) and also enabled few other settings which are listed below.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Enabled QUIC&lt;/li&gt;
&lt;li&gt;  Compression&lt;/li&gt;
&lt;li&gt;  Caching&lt;/li&gt;
&lt;li&gt;  HSTS settings&lt;/li&gt;
&lt;li&gt;  DNSSEC&lt;/li&gt;
&lt;li&gt;  Always online&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Enabled DNSSEC
&lt;/h3&gt;

&lt;p&gt;The &lt;a href="https://en.wikipedia.org/wiki/Domain_Name_System_Security_Extensions" rel="noopener noreferrer"&gt;Domain Name System Security Extensions&lt;/a&gt; (DNSSEC) attempts to add security and was designed to protect applications (and caching resolvers serving those applications) from using forged or manipulated DNS data, such as that created by DNS cache poisoning. All answers from DNSSEC protected zones are digitally signed.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fujfagw40bic3ls8k8j5c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fujfagw40bic3ls8k8j5c.png" alt="DNSSEC-enabled-cloudflare" width="800" height="186"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I have enabled DNSSEC in the CloudFlare configuration and followed the instructions to set up DNSSEC at my domain registrar (Google Domains).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1uyomzz2q9lha1m4uq88.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1uyomzz2q9lha1m4uq88.png" alt="DNSSEC-configuration-google-domains" width="800" height="248"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Halved the Droplet resources
&lt;/h3&gt;

&lt;p&gt;Due to the above-mentioned changes &amp;amp; optimizations, the bulk of the load will be taken care of CloudFlare and only Static pages will be served by our server, the resources required are not much, so I halved the server capacity from that of the previous one. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://m.do.co/c/b86d37cd0eaa" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr9lbhhqwevnzq2mdogvh.png" alt="DO server" width="800" height="77"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So, Instead of the previous $10/month server (2GB RAM, 50GB SSD HDD, 2TB transfer), I used a minimum droplet costing just $5/month (1GB RAM, 25GB SSD HDD, 1000GB transfer) and it barely utilizes 1/3rd of its resources in terms of CPU &amp;amp; RAM usage.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3fynj2cyu3r4l33fhtn6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3fynj2cyu3r4l33fhtn6.png" alt="cpu-memory-disk-load" width="800" height="504"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4lvoxadue9chybhe9jzf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4lvoxadue9chybhe9jzf.png" alt="disk-bandwidth" width="800" height="258"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Though It's a given that my blog doesn't have much (or any) traffic, the previous setup was not able to handle that and used to crash at times. &lt;/p&gt;

&lt;h2&gt;
  
  
  Results
&lt;/h2&gt;

&lt;p&gt;After performing these changes, I measured the performance of the site using &lt;a href="https://googlechrome.github.io/lighthouse/viewer/?psiurl=https%3A%2F%2Fraghuspeaks.com%2F&amp;amp;strategy=mobile&amp;amp;category=performance&amp;amp;category=accessibility&amp;amp;category=best-practices&amp;amp;category=seo&amp;amp;category=pwa&amp;amp;utm_source=lh-chrome-ext" rel="noopener noreferrer"&gt;Google Lighthouse&lt;/a&gt; and the reports indicate that site performance has increased multifold and is near perfect as shown below, proving the site has become &lt;strong&gt;faster&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqi2jtukou4znf3tpc3lu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqi2jtukou4znf3tpc3lu.png" alt="Google Lighthouse report" width="800" height="155"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;SSL labs test has revealed a security rating of &lt;strong&gt;A+&lt;/strong&gt;, the highest rating, hence more &lt;strong&gt;secure&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftdn10cirlwdrzxfwcrey.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftdn10cirlwdrzxfwcrey.png" alt="SSL Labs Test results" width="800" height="434"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It also halved the resources thereby reducing the cost by half but still more than enough resources for the blog to handle a multifold increase in traffic, hence &lt;strong&gt;cheaper&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://m.do.co/c/b86d37cd0eaa" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr9lbhhqwevnzq2mdogvh.png" alt="DO server" width="800" height="77"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://m.do.co/c/b86d37cd0eaa" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F613a4iu090inz7qvjxj1.png" alt="DO cost comparison" width="800" height="388"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Potential Future Improvements
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;  Implement the potential solution for the known issue.&lt;/li&gt;
&lt;li&gt;  PWA support (Possibly using CloudFlare workers)&lt;/li&gt;
&lt;li&gt;  Onesignal notification support&lt;/li&gt;
&lt;li&gt;  Some commenting plugin (Mostly Disqus, if not, some opensource alternatives)&lt;/li&gt;
&lt;li&gt;  Automated deployments (Possibly using GitHub Actions &amp;amp; rsync)&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>hugo</category>
      <category>wordpress</category>
      <category>blog</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
