<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Noah Oliver Rigonan on Medium]]></title>
        <description><![CDATA[Stories by Noah Oliver Rigonan on Medium]]></description>
        <link>https://medium.com/@oliverrigonan?source=rss-6e1f605eff94------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*-bsNlhQJHCWdL2Ark78CUQ.jpeg</url>
            <title>Stories by Noah Oliver Rigonan on Medium</title>
            <link>https://medium.com/@oliverrigonan?source=rss-6e1f605eff94------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 18:12:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@oliverrigonan/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Successfully Requesting an HRMP Open Channel from Xode to Hydration — A Real-World Walkthrough]]></title>
            <link>https://medium.com/@oliverrigonan/successfully-requesting-an-hrmp-open-channel-from-xode-to-hydration-a-real-world-walkthrough-ce6b785d2b58?source=rss-6e1f605eff94------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce6b785d2b58</guid>
            <category><![CDATA[xode]]></category>
            <category><![CDATA[polkadot]]></category>
            <category><![CDATA[hrmp-channels]]></category>
            <category><![CDATA[hrmp]]></category>
            <category><![CDATA[xcm]]></category>
            <dc:creator><![CDATA[Noah Oliver Rigonan]]></dc:creator>
            <pubDate>Wed, 22 Oct 2025 07:20:26 GMT</pubDate>
            <atom:updated>2025-10-22T07:20:26.557Z</atom:updated>
            <content:encoded><![CDATA[<h3>Successfully Requesting an HRMP Open Channel from Xode to Hydration — A Real-World Walkthrough</h3><p>In this article, we’ll share how we <strong>successfully requesting an HRMP (Horizontal Relay-routed Message Passing) open channel </strong>from <strong>Xode Parachain (paraId 3417)</strong> to <strong>Hydration Parachain (paraId 2034)</strong>.</p><p>This wasn’t just a test — it was a real-world process we carried out on the Polkadot ecosystem, involving <strong>whitelisting through the Technical Committee</strong>, <strong>XCM construction</strong>, and <strong>on-chain governance approvals</strong>.</p><p>Let’s walk you through what happened step by step.</p><h3>🧩 Understanding HRMP, Xode, and Hydration</h3><p>Before we dive into the process, let’s quickly recall what these are:</p><ul><li><strong>HRMP (Horizontal Relay-routed Message Passing)</strong> allows parachains to communicate with each other via the <strong>Polkadot Relay Chain</strong>. It’s a crucial step toward interoperability, enabling parachains to exchange assets or data seamlessly.</li><li><strong>Xode (paraId 3417)</strong> is our parachain, designed for Web3 innovation, smart contracts, and cross-chain infrastructure within the Polkadot ecosystem.</li><li><strong>Hydration (paraId 2034)</strong> is another parachain focused on decentralized liquidity and DeFi functionalities.</li></ul><p>Our goal: <strong>Open an HRMP channel from Xode to Hydration</strong> so both chains can communicate through Polkadot’s relay.</p><h3>⚙️ Creating the HRMP Open Channel Call</h3><p>We started on the <strong>Polkadot Relay Chain</strong>, where we created an <strong>hrmp.initOpenChannel</strong> call.</p><p>This call prepares the channel request between the two parachains.<br> We specified the following parameters:</p><ul><li><strong>proposed_max_capacity</strong> — how many messages can be queued in the channel</li><li><strong>proposed_max_message_size</strong> — the maximum size allowed for each message</li></ul><p>Both of these depend on the relay chain’s active configuration, which we checked under:</p><blockquote>Polkadot Relay Chain → Chain State → Storage → Configuration → Active Config</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q_slTTvqnkMl_HLs0undOw.png" /></figure><p>Instead of submitting the call directly, we <strong>copied the encoded call data</strong> — we would need this later in our XCM message inside the Xode parachain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9YnP2rsY2s7D0E879pWJ-g.png" /></figure><h3>💰 Funding the Sovereign Account</h3><p>Before sending the XCM message, we made sure that <strong>Xode’s child sovereign account on the relay chain</strong> had enough balance to pay for execution fees.</p><p>Without sufficient funds, the XCM transaction would fail, as the relay chain must charge for message processing.</p><p>So we funded the <strong>sovereign account of Xode</strong> accordingly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/1*mt2zs15lOmYdiPM1TB5GrA.png" /></figure><h3>📡 Sending the XCM Call in Xode</h3><p>Once funded, we went back to <strong>Xode</strong> and created a new XCM call using:</p><pre>polkadotXcm.send()</pre><p>This is where the earlier encoded call data (hrmp.initOpenChannel) was used inside a <strong>Transact</strong> instruction.</p><p>Here’s a summary of what the XCM message executed:</p><ol><li><strong>WithdrawAsset</strong> — Took funds from the Xode sovereign account to pay for execution.</li><li><strong>BuyExecution</strong> — Purchased execution time for the XCM call.</li><li><strong>Transact</strong> — Executed the actual HRMP open channel call on the relay chain.</li><li><strong>RefundSurplus</strong> — Refunded unused weight (execution fees).</li><li><strong>DepositAsset</strong> — Deposited the remaining balance back to the sovereign account.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gMv2Ts7TkJ0WbLbBCUemBw.png" /></figure><p>Here’s the encoded call data:</p><blockquote>0x1f0003010003140004000000000700e40b540213000000000700e40b54020006000300c16678419c383c00f20700001900000000900100140d01000001010070617261590d0000000000000000000000000000000000000000000000000000</blockquote><p>This call ensures that the XCM executes safely and efficiently. Once created, we copied its <strong>call hash</strong>, as this was required in the next step for governance whitelisting.</p><h3>🧑‍⚖️ Whitelisting via Technical Committee</h3><p>In <strong>Xode</strong>, not just anyone can execute a <strong>polkadotXcm.send()</strong> call. For security and governance integrity, this action requires <strong>sudo privileges</strong>.</p><p>However, in Xode’s governance model, <strong>sudo actions are managed by the Technical Committee — </strong>meaning they are not executed directly by individuals. Instead, they must go through a <strong>whitelisting process</strong> approved by the committee.</p><p>This ensures that only authorized and verified XCM messages are executed, maintaining both <strong>network safety and transparency</strong>.</p><p>The <strong>Technical Committee</strong> manages this process through two stages:</p><ol><li><strong>Whitelist Call</strong></li><li><strong>Dispatch Whitelist with Pre-Image</strong></li></ol><h4>Whitelist Call</h4><p>We started by submitting the <strong>Whitelist Call</strong> proposal through the <strong>Technical Committee</strong>.</p><blockquote>Go to Developer → Extrinsics → technicalCommittee → propose → whitelist → whitelistCall</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C3y2RF4mdQMZoeyTWoH6bg.png" /></figure><p>Here, we used the <strong>call hash</strong> from our previously created XCM message.</p><blockquote>0xfc78ccb8f15a3e5dd70de15f0f5f74e264b5aee3b7778f2355c3203ca72d5169</blockquote><p>Here’s the encoded call data:</p><blockquote>0x37020c3c00fc78ccb8f15a3e5dd70de15f0f5f74e264b5aee3b7778f2355c3203ca72d51699101</blockquote><p>After submission, the committee initiated the voting process. Once approved, the whitelist appeared in the <strong>Governance → Whitelist</strong> section.</p><p>However, at this stage, the entry didn’t have the actual <strong>pre-image</strong> (the full encoded call data).</p><p>So we moved to the next step.</p><h4>Dispatch Whitelist with Pre-Image</h4><p>Next, we submitted another proposal: <strong>Dispatch Whitelist w/ Pre-Image</strong>.</p><blockquote>Go to Developer → Extrinsics → technicalCommittee → propose → whitelist → dispatchWhitelistCallWithPreImage.</blockquote><p>This included the <strong>exact same call format</strong> we used earlier for the XCM, but now attached with the full <strong>encoded call data</strong> as the pre-image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rnFL2V4yHQ7KuaL523ajww.png" /></figure><p>Here’s the encoded call data:</p><blockquote>0x37020c3c031f0003010003140004000000000700e40b540213000000000700e40b54020006000300c16678419c383c00f20700001900000000900100140d01000001010070617261590d00000000000000000000000000000000000000000000000000009101</blockquote><p>The technical committee voted and approved this as well. Once executed, the whitelist entry was fully recognized with the pre-image — authorizing the system to safely dispatch the XCM message.</p><h3>🔍 Monitoring the Execution</h3><p>With everything approved, we monitored the network activity in both chains:</p><ul><li><strong>Xode Parachain → Network → Explorer</strong></li><li><strong>Polkadot Relay Chain → Network → Explorer</strong></li></ul><p>We saw confirmation events indicating that the <strong>extrinsic succeeded</strong> — meaning our XCM message was executed properly on the relay chain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/844/1*GdAcC5DYGihxhmi13EqSlw.png" /></figure><p>✅ Success!</p><h3>📊 Verifying the HRMP Request</h3><p>To verify that the channel request went through, we checked:</p><blockquote>Polkadot Relay Chain → Developer → Chain State → hrmp → hrmpOpenChannelRequests</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dg9qOHKWrvSWXmrS7S28sw.png" /></figure><p>There, we found a record showing:</p><pre>[<br>  [<br>    {<br>      sender: 3,417<br>      recipient: 2,034<br>    }<br>  ]<br>  {<br>    confirmed: false<br>    age: 0<br>    senderDeposit: 100,000,000,000<br>    maxMessageSize: 102,400<br>    maxCapacity: 25<br>    maxTotalSize: 102,400<br>  }<br>]</pre><p>This confirmed that <strong>Xode (3417)</strong> had successfully requested an open HRMP channel to <strong>Hydration (2034)</strong>.</p><p>Additionally, we noticed a small deduction from the Xode sovereign account — the XCM transaction fee.</p><p>Everything was now in place.</p><h3>🎉 Final Outcome</h3><p>And that’s it — the <strong>HRMP open channel request from Xode to Hydration</strong> was successfully created and executed.</p><p>All that remains is for <strong>Hydration (paraId 2034)</strong> to <strong>accept the request</strong> to complete the channel opening.</p><p>This process involved:</p><ul><li>Crafting the HRMP call on the relay chain</li><li>Funding the sovereign account</li><li>Composing an XCM with <strong>polkadotXcm.send()</strong></li><li>Performing whitelisting via the Technical Committee</li><li>Executing and verifying the call across both chains</li></ul><p>It was a detailed and careful process, but it’s a great demonstration of <strong>how Polkadot’s governance, XCM, and HRMP systems work together</strong> to ensure secure, permissioned cross-chain operations.</p><h3>🏁 Conclusion</h3><p>This successful HRMP channel opening from <strong>Xode to Hydration</strong> shows how interoperable and secure the Polkadot ecosystem truly is.</p><p>Through the use of <strong>technical committee governance</strong>, <strong>XCM messages</strong>, and <strong>sovereign account funding</strong>, we were able to connect two independent parachains under one shared relay.</p><p>This not only enables <strong>cross-chain communication</strong>, but also lays the foundation for future integrations — from token transfers to inter-parachain services.</p><p>I hope you found this walkthrough helpful and insightful.</p><p>This process took several steps, but it clearly shows how powerful Polkadot’s design is when it comes to secure cross-chain execution.</p><p>If you enjoyed this post or learned something new, feel free to share it — and stay tuned for the next part when we walk through how <strong>Hydration</strong> accepts the HRMP request!</p><p>Thanks for reading, and I hope you liked my blog! 🙌</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce6b785d2b58" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Obtain SSL certificate and secure your Nginx with Let’s Encrypt]]></title>
            <link>https://medium.com/@oliverrigonan/obtain-ssl-certificate-and-secure-your-nginx-with-lets-encrypt-8381ba1304c1?source=rss-6e1f605eff94------2</link>
            <guid isPermaLink="false">https://medium.com/p/8381ba1304c1</guid>
            <category><![CDATA[nginx]]></category>
            <category><![CDATA[secure]]></category>
            <category><![CDATA[ssl-certificate]]></category>
            <category><![CDATA[lets-encrypt]]></category>
            <category><![CDATA[certbot]]></category>
            <dc:creator><![CDATA[Noah Oliver Rigonan]]></dc:creator>
            <pubDate>Mon, 11 Mar 2024 16:07:36 GMT</pubDate>
            <atom:updated>2024-03-11T16:22:53.831Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s Encrypt is a free, automated, and open certificate authority (CA) that provides digital certificates for enabling encrypted HTTPS connections on websites.</p><p>The primary goal of Let’s Encrypt is to make HTTPS encryption universally accessible by simplifying the process of obtaining and installing SSL/TLS certificates. Traditionally, obtaining SSL certificates involves a manual and often costly process, which could be a barrier for many website owners, especially those with limited technical expertise or financial resources.</p><p>Let’s Encrypt automates the certificate issuance, renewal, and installation processes, allowing website owners to secure their domains with HTTPS encryption easily and at no cost. This automation is achieved through the use of an open-source software called Certbot, which supports various web servers and platforms.</p><p>By providing free SSL/TLS certificates, Let’s Encrypt aims to improve online security and privacy, encourage widespread HTTPS adoption, and promote a safer and more secure web browsing experience for everyone.</p><p><strong>Install Certbot and the Certbot Nginx plugin:<br></strong>Before we begin, it’s essential to ensure that our server is up to date with the latest packages. We’ll update the package index and then proceed to install Certbot along with the Certbot Nginx plugin.</p><pre>sudo apt update<br>sudo apt install certbot python3-certbot-nginx</pre><ul><li>sudo apt update: This command updates the package index to ensure that we are fetching the latest versions of packages available in the repositories.</li><li>sudo apt install certbot python3-certbot-nginx: Certbot is the command-line tool for managing SSL/TLS certificates. The python3-certbot-nginx package provides the Certbot plugin for Nginx, enabling Certbot to interact with Nginx for certificate management.</li></ul><p><strong>Obtain and install SSL/TLS certificate:</strong><br>Now that Certbot and the Nginx plugin are installed, we can proceed to obtain and install the SSL/TLS certificate for our domain. Navigate to /etc/nginx/sites-available and run this command:</p><pre>sudo certbot --nginx -d blogs-api.xgame.live</pre><p>In this case, I used my blogs-api.xgame.live file inside the /etc/nginx/sites-available directory.</p><ul><li>sudo certbot: This command invokes Certbot with elevated privileges.</li><li>--nginx: The --nginx option tells Certbot to use the Nginx plugin for certificate management.</li><li>-d blogs-api.xgame.live: This flag specifies the domain name for which we want to obtain the SSL/TLS certificate.</li></ul><p>Thats it!</p><p>Certbot will automatically detect the Nginx configuration for your domain and initiate the certificate issuance process with Let’s Encrypt, a free and open certificate authority. These steps are designed for Ubuntu Linux users utilizing Nginx as their web server.</p><p>I hope you enjoy and find it helpful. Thank you so much</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8381ba1304c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learn how to set up auto-deployment for a Fastify project in GitHub by dockerizing it and hosting…]]></title>
            <link>https://medium.com/@oliverrigonan/learn-how-to-set-up-auto-deployment-for-a-fastify-project-in-github-by-dockerizing-it-and-hosting-3384efef62e3?source=rss-6e1f605eff94------2</link>
            <guid isPermaLink="false">https://medium.com/p/3384efef62e3</guid>
            <category><![CDATA[fastify]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[ec2-instance]]></category>
            <category><![CDATA[autodeployment]]></category>
            <category><![CDATA[nginx]]></category>
            <dc:creator><![CDATA[Noah Oliver Rigonan]]></dc:creator>
            <pubDate>Mon, 11 Mar 2024 15:43:42 GMT</pubDate>
            <atom:updated>2024-03-12T09:46:06.529Z</atom:updated>
            <content:encoded><![CDATA[<h3>Learn how to set up auto-deployment for a Fastify project in GitHub by dockerizing it and hosting it with Nginx on EC2</h3><p><strong>Introduction:</strong><br>Deploying web applications efficiently and reliably is a crucial aspect of modern software development. In this blog, we will walk through the process of setting up auto-deployment for a Fastify project in GitHub, utilizing Docker for containerization, and Nginx for web server functionality on an EC2 instance.</p><p><strong>Configuring Secret Variables in GitHub Repository: </strong><br>Before we begin, we’ll set up secret variables in our GitHub repository, providing essential information required for our deployment script, such as EC2 instance details. Here are the steps:</p><ol><li>Go to your GitHub repository and open the ‘Settings’ tab.</li><li>Under the ‘Secrets and variables’ section, click on the ‘Actions’ menu.</li><li>Provide all the necessary information for your deployment script.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FwrVR26ql1lr8sU8vu98aA.png" /></figure><p>We’ll clone the repository to our local environment after encoding or providing the necessary variables.</p><p><strong>Setting up the Deployment Workflow:<br></strong>To initiate the deployment workflow, begin by creating a directory named .github/workflows in the root directory of your project. Inside this directory, create a .yml file. In this case, I named the file staging_deployment.yml, which will orchestrate the deployment process.</p><pre>name: staging_deployment<br><br>on:<br>  push:<br>    tags:<br>      - v**-staging<br><br>jobs:<br>  build_and_deploy:<br>    runs-on: ubuntu-latest<br>    steps:<br>      - name: Checkout code<br>        uses: actions/checkout@v2<br><br>      - name: Setting up AWS credentials<br>        uses: aws-actions/configure-aws-credentials@v1<br>        with:<br>          aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}<br>          aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}<br>          aws-region: ${{ secrets.AWS_REGION }}<br><br>      - name: Build Docker image<br>        run: docker build -t oress-xgame-blogs-api-app . --no-cache<br><br>      - name: Push Docker Image to ECR<br>        run: |<br>          aws ecr get-login-password --region ${{ secrets.AWS_REGION }} | docker login --username AWS --password-stdin ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.us-east-1.amazonaws.com<br>          docker tag oress-xgame-blogs-api-app:latest ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.us-east-1.amazonaws.com/oress-xgame-blogs-api-app:latest<br>          docker push ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.us-east-1.amazonaws.com/oress-xgame-blogs-api-app:latest<br><br>      - name: SSH to EC2 Instance<br>        run: |<br>          mkdir ~/.ssh<br>          echo -e &quot;${{ secrets.STAGING_PRIVATE_KEY }}&quot; &gt; ~/.ssh/xgames-keypair<br>          chmod 400 ~/.ssh/xgames-keypair<br>          ssh -o StrictHostKeyChecking=no -i ~/.ssh/xgames-keypair ${{ secrets.STAGING_USERNAME }}@${{ secrets.STAGING_HOST }} \<br>            &#39;cd ${{ secrets.STAGING_PATH }} &amp;&amp; \  <br>            sudo aws configure set aws_access_key_id &quot;${{ secrets.AWS_ACCESS_KEY_ID }}&quot; &amp;&amp; \<br>            sudo aws configure set aws_secret_access_key &quot;${{ secrets.AWS_SECRET_ACCESS_KEY }}&quot; &amp;&amp; \<br>            sudo aws configure set default.region &quot;${{ secrets.AWS_REGION }}&quot; &amp;&amp; \<br>            sudo aws ecr get-login-password --region ${{ secrets.AWS_REGION }} | sudo docker login --username AWS --password-stdin ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.us-east-1.amazonaws.com &amp;&amp; \<br>            sh deploy_staging.sh&#39;</pre><p>Simultaneously, ensure the creation of Dockerfiles within your project to facilitate containerization. These Dockerfiles will be pivotal in building Docker images required for deployment.</p><pre>FROM node:18.16.1-alpine<br><br>WORKDIR /app<br><br>COPY package.json .<br><br>RUN npm install -g npm@9.8.1<br>RUN npm install<br><br>COPY . .<br><br>RUN npm run prisma:generate<br><br>EXPOSE 3002<br><br>CMD [&quot;npm&quot;, &quot;run&quot;, &quot;start&quot;]</pre><p><strong>Note:</strong> You need to create a .dockerignore file to exclude modules when building the Docker images. This file helps streamline the Docker image creation process by excluding unnecessary files and directories, resulting in smaller and more efficient images.</p><pre>/node_modules</pre><p>Additionally, I utilized AWS Elastic Container Registry (ECR) to serve as a repository for storing these Docker images. You can also observe it in the script under the name ‘Push Docker Image to ECR’, indicating that after each Dockerfile builds, the image will be pushed to ECR.</p><p>Following these steps, proceed to create a new branch in your repository and specify it within your deployment script. In my case, I exclusively utilize the ‘staging’ branch for deployment purposes. Publish this branch to GitHub to synchronize the changes.</p><p><strong>Configuring EC2 Instance: </strong><br>We’ll connect to our EC2 instance and configure necessary scripts for deployment, including Docker commands. In this case, I created a file named deploy_staging.sh. As you can notice, this is the file that is being called in the last part of your deployment script. Once this file is executed, the commands inside it are executed as well (Please see the file below):</p><pre>#!/bin/bash<br><br>sudo docker-compose pull<br>sudo docker-compose up -d<br>sudo docker exec -t xgame-blogs-api npx prisma migrate deploy<br>sudo docker system prune -f<br><br>sudo systemctl restart nginx</pre><p>We’ll also have to create the docker-compose.yml file, configuring it to point to our ECR repository for easy Docker image retrieval.</p><pre>version: &quot;3.9&quot;<br><br>services:<br>  app:<br>    image: &lt;Your AWS AccountId&gt;.dkr.ecr.us-east-1.amazonaws.com/oress-xgame-blogs-api-app:latest<br>    container_name: xgame-blogs-api<br>    env_file:<br>      - .env<br>    ports:<br>      - 3002:3002</pre><p>As you can see, the image points to the ECR in AWS. Once the docker-compose pull command is being executed in the deploy-staging.sh file, it will pull the latest docker image and update your docker container.</p><p><strong>Running Auto Deployment: </strong><br>Once everything is set up, we’ll trigger the auto-deployment workflow on GitHub. This automated process ensures that any changes pushed to the repository will automatically be deployed to the server without manual intervention. To do so, we need to draft a new release in GitHub. Here are the steps:</p><ol><li>Go to your GitHub repository.</li><li>On the right side, you will see a label ‘Releases’, where you can create or draft a new release. (Please see the image below)</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aqYJxxQ8APKJtntDSF-vbA.png" /></figure><p>When drafting a release, we need to ensure that the tags we create match the configuration script set up in the staging_deployment.yml file. This is the indicator or trigger for deploying the application, as we specify in the script the following:</p><pre>on:<br>  push:<br>    tags:<br>      - v**-staging</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*92asg2xbrkF0xraL61uDpA.png" /></figure><p>Once everything is in order, click the “Publish release” button. Then, navigate to the ‘Actions’ tab where you will be able to observe the workflow running based on the provided script. This workflow will automate the deployment process, ensuring seamless and efficient updates to your application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_0VbeTG9-mONknp4k7DN-A.png" /></figure><p>You can verify the success of the auto-deployment script executed under the Actions tab by checking your EC2 instance. Upon running the command docker ps, you&#39;ll be able to see the status of the Docker containers. If the deployment was successful, you&#39;ll observe the Docker container running as expected, indicating that the latest changes have been deployed seamlessly. This verification step ensures that your application is up and running after each deployment iteration. (Please see the image below)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*198E_USS8tlw7zAWJXZq1w.png" /></figure><p><strong>Configuring Nginx: </strong><br>Finally, we’ll set up the Nginx configuration to act as a reverse proxy, directing traffic to our Docker container. This step is crucial for efficiently routing incoming requests to the appropriate endpoints within our application. By configuring Nginx as a reverse proxy, we enhance security, scalability, and performance, ensuring smooth operation and an optimal user experience. Here are the steps:</p><ol><li>Connect to your EC2 instance and navigate to the /etc/nginx/sites-available directory. If you haven&#39;t installed the Nginx server yet, you can follow the steps provided in this link: <br><a href="https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-20-04">https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-20-04</a></li><li>Create a file inside the directory. In this case, I named the file blogs-api.xgame.live.</li><li>Edit that file by running the command sudo nano blogs-api.xgame.live. I used the following configuration below:</li></ol><pre>GNU nano 6.2 <br>                                                                                blogs-api.xgame.live                                                                                          <br>server {<br>    server_name blogs-api.xgame.live;<br><br>    location / {<br>        proxy_pass http://localhost:3002;<br>        proxy_http_version 1.1;<br>        proxy_set_header Upgrade $http_upgrade;<br>        proxy_set_header Connection keep-alive;<br>        proxy_set_header Host $host;<br>        proxy_cache_bypass $http_upgrade;<br>        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>        proxy_set_header X-Forwarded-Proto $scheme;<br>    }<br>}</pre><p>4. Finally, enable your Nginx configuration by linking it to the /etc/nginx/sites-enabled directory with the following command:</p><pre>sudo ln -s /etc/nginx/sites-available/blogs-api.xgame.live /etc/nginx/sites-enabled/</pre><p>That’s it! By the end of this tutorial, you’ll have a comprehensive understanding of how to automate the deployment process for your Fastify project, ensuring seamless and efficient delivery of your application. I hope you find it helpful and enjoyable.</p><p>Thank you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3384efef62e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>