<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Web Hosting Services on D. Sébastien Taggart</title>
    <link>https://www.sebastientaggart.com/categories/web-hosting-services/</link>
    <description>Recent content in Web Hosting Services on D. Sébastien Taggart</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Sun, 04 Oct 2026 23:02:59 -0400</lastBuildDate>
    <atom:link href="https://www.sebastientaggart.com/categories/web-hosting-services/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Streamlining User Experience through Restricted Access to Caddy Proxied Subdomains</title>
      <link>https://www.sebastientaggart.com/writing/streamlining-user-experience-through-restricted-access-to-caddy-proxied-subdomains/</link>
      <pubDate>Mon, 07 Jun 2021 08:32:00 -0500</pubDate>
      <guid>https://www.sebastientaggart.com/writing/streamlining-user-experience-through-restricted-access-to-caddy-proxied-subdomains/</guid>
      <description>&lt;p&gt;Managing access to multiple subdomains behind a web proxy can feel like navigating a maze without a map. One of the most frustrating challenges users face is the need to repeatedly enter authentication details across these subdomains. This not only consumes valuable time but can also lead to considerable frustration. Luckily, Caddy offers a powerful solution that elevates the user experience while simplifying management for web administrators. In this post, we’ll explore how Caddy Proxy can effectively restrict access to subdomains, significantly reducing the need for repeated authentication.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Managing access to multiple subdomains behind a web proxy can feel like navigating a maze without a map. One of the most frustrating challenges users face is the need to repeatedly enter authentication details across these subdomains. This not only consumes valuable time but can also lead to considerable frustration. Luckily, Caddy offers a powerful solution that elevates the user experience while simplifying management for web administrators. In this post, we’ll explore how Caddy Proxy can effectively restrict access to subdomains, significantly reducing the need for repeated authentication.</p>
<h2 id="what-is-caddy-proxy">What is Caddy Proxy?</h2>
<p>Caddy is more than just a web server; it’s a robust open-source tool designed with simplicity and efficiency at its core. A standout feature is its capability as a reverse proxy—acting as an intermediary for requests from clients. This functionality is especially beneficial when managing multiple subdomains under a single web server.</p>
<h2 id="solving-the-authentication-dilemma">Solving the Authentication Dilemma</h2>
<p>Caddy’s role as a reverse proxy allows it to intelligently forward incoming requests to various servers based on specific criteria. By leveraging this capability, you can redirect user requests to different subdomains without requiring them to re-enter their credentials each time they shift their focus.</p>
<p>One practical approach is to utilize Caddy’s built-in <code>basicauth</code> directive. This directive matches all requests to a designated path and prompts users for their credentials before granting access.</p>
<pre tabindex="0"><code>example.com {
    basicauth / username password
    proxy / localhost:1234
}
</code></pre><p>In this configuration, we specify that basic authentication applies to the root path (&quot;/&quot;) for all requests to &rsquo;example.com&rsquo;. Once authenticated, users enjoy the convenience of seamless navigation across subdomains without the hassle of repeated logins.</p>
<h2 id="using-jwt-for-authentication">Using JWT for Authentication</h2>
<p>Another effective method for securing access to proxied subdomains involves the use of JSON Web Tokens (JWT). JWTs are an open standard for securely transmitting information between parties as a JSON object. By integrating the JWT plugin with Caddy, you can enforce access control in a way that enhances both security and user experience.</p>
<p>Consider the following Caddyfile configuration:</p>
<pre tabindex="0"><code>example.com {
    jwt path /
    proxy / localhost:1234
}
</code></pre><p>Here, the directive <code>jwt path /</code> requires that a valid JWT be present in the &lsquo;Authorization&rsquo; header of the request for the root path (&quot;/&quot;). This setup effectively enforces access control across specified paths, allowing for smooth transitions between subdomains after initial authentication.</p>
<h2 id="ensuring-optimal-user-experience">Ensuring Optimal User Experience</h2>
<p>Utilizing Caddy Proxy to manage access to subdomains not only enhances security but also significantly improves the user experience. Whether you opt for basic authentication or JWT, these technical implementations ensure that users can move effortlessly across your site, free from unnecessary interruptions.</p>
<p>By grasping the potential of Caddy&rsquo;s built-in directives and the utility of JWT, administrators can refine how they manage access to their websites. Embracing Caddy Proxy ultimately fosters a secure, user-friendly environment that meets both organizational needs and user expectations.</p>
<p>In an era where digital convenience is paramount, understanding and implementing these strategies can set your web services apart. Let’s streamline the user experience together, one subdomain at a time.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Streamlining Hugo Post Creation with Bash</title>
      <link>https://www.sebastientaggart.com/writing/bash-helper-script-to-create-hugo-academic-posts/</link>
      <pubDate>Tue, 11 Aug 2020 12:46:08 +0000</pubDate>
      <guid>https://www.sebastientaggart.com/writing/bash-helper-script-to-create-hugo-academic-posts/</guid>
      <description>If you find it annoying to have to manually create a specific directory structure every time you want to create a post in Hugo using the Academic theme, then you need this simple bash script to do the steps for you!</description>
      <content:encoded><![CDATA[<p>Creating content in Hugo using the Academic Theme can sometimes feel like navigating a maze of directories and file structures. As a seasoned technical program manager, I’ve experienced firsthand the inefficiencies that can arise from a seemingly straightforward process. Let&rsquo;s explore how we can simplify the creation of new posts and reclaim our time for more meaningful tasks.</p>
<h3 id="the-challenge">The Challenge</h3>
<p>Hugo&rsquo;s Academic Theme imposes a specific directory structure that, while logical, can feel contrived. If you&rsquo;ve ever attempted to create a new post, you might have found yourself facing a series of steps that can lead to errors if not executed with precision:</p>
<ol>
<li>Create a directory with a URL-friendly name (no spaces or special characters).</li>
<li>Create a subdirectory for assets.</li>
<li>Create an <code>index.md</code> file with the necessary front matter.</li>
<li>Modify <code>index.md</code> to include the title, summary, and other details.</li>
</ol>
<p>The multi-step process can become tedious, especially when a simple solution is at hand.</p>
<h3 id="why-it-matters">Why It Matters</h3>
<p>In the world of content creation, efficiency is key. It’s not just about saving time; it’s about enabling creativity and reducing friction in the workflow. By streamlining the post creation process, we empower ourselves to focus on what truly matters: crafting compelling content that resonates with our audience.</p>
<h3 id="a-simple-solution">A Simple Solution</h3>
<p>Imagine if you could condense all those steps into a single command. Enter our Bash script, which automates the creation of a new post with just one line:</p>
<pre tabindex="0"><code>./new &#34;Title of My Awesome New Post&#34;
</code></pre><p>This script does the heavy lifting for you, setting up the necessary directory structure and pre-filling your <code>index.md</code> file with the appropriate front matter.</p>
<p>Here’s how the magic happens:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="cp">#!/bin/bash
</span></span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># Script to create a new post for Hugo Academic&#39;s expected directory structure.</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="nv">TARGETDIR</span><span class="o">=</span><span class="s2">&#34;./content/post&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># Ensure a title is provided</span>
</span></span><span class="line"><span class="cl"><span class="k">if</span> <span class="o">[</span> -z <span class="s2">&#34;</span><span class="nv">$1</span><span class="s2">&#34;</span> <span class="o">]</span><span class="p">;</span> <span class="k">then</span>
</span></span><span class="line"><span class="cl">  <span class="nb">echo</span> <span class="s1">&#39;You must supply a post title, e.g.&#39;</span>
</span></span><span class="line"><span class="cl">  <span class="nb">echo</span> <span class="s1">&#39;  ./new &#34;The Cool Title of My New Post&#34;&#39;</span>
</span></span><span class="line"><span class="cl">  <span class="nb">exit</span> <span class="m">1</span>
</span></span><span class="line"><span class="cl"><span class="k">fi</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># Sanitize the input for directory naming</span>
</span></span><span class="line"><span class="cl"><span class="nv">TITLE</span><span class="o">=</span><span class="si">${</span><span class="nv">1</span><span class="si">}</span>
</span></span><span class="line"><span class="cl"><span class="nv">SANIN</span><span class="o">=</span><span class="si">${</span><span class="nv">1</span><span class="p">// /-</span><span class="si">}</span>
</span></span><span class="line"><span class="cl"><span class="nv">SANIN</span><span class="o">=</span><span class="si">${</span><span class="nv">SANIN</span><span class="p">//_/-</span><span class="si">}</span>
</span></span><span class="line"><span class="cl"><span class="nv">SANIN</span><span class="o">=</span><span class="si">${</span><span class="nv">SANIN</span><span class="p">//[^a-zA-Z0-9</span><span class="se">\-</span><span class="p">]/</span><span class="si">}</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># Pre-fill the new file with Hugo Academic theme Front Matter</span>
</span></span><span class="line"><span class="cl"><span class="nv">ISOTIME</span><span class="o">=</span><span class="k">$(</span>date -u +<span class="s1">&#39;%Y-%m-%dT%H:%M:%SZ&#39;</span><span class="k">)</span>
</span></span><span class="line"><span class="cl"><span class="nv">PREFILLTPL</span><span class="o">=</span><span class="s2">&#34;---
</span></span></span><span class="line"><span class="cl"><span class="s2">title: &#39;</span><span class="si">${</span><span class="nv">TITLE</span><span class="si">}</span><span class="s2">&#39;
</span></span></span><span class="line"><span class="cl"><span class="s2">subtitle: &#39;&#39;
</span></span></span><span class="line"><span class="cl"><span class="s2">summary: 
</span></span></span><span class="line"><span class="cl"><span class="s2">authors:
</span></span></span><span class="line"><span class="cl"><span class="s2">tags:
</span></span></span><span class="line"><span class="cl"><span class="s2">categories:
</span></span></span><span class="line"><span class="cl"><span class="s2">date: \&#34;</span><span class="si">${</span><span class="nv">ISOTIME</span><span class="si">}</span><span class="s2">\&#34;
</span></span></span><span class="line"><span class="cl"><span class="s2">lastmod: \&#34;</span><span class="si">${</span><span class="nv">ISOTIME</span><span class="si">}</span><span class="s2">\&#34;
</span></span></span><span class="line"><span class="cl"><span class="s2">draft: false
</span></span></span><span class="line"><span class="cl"><span class="s2">projects: []
</span></span></span><span class="line"><span class="cl"><span class="s2">---
</span></span></span><span class="line"><span class="cl"><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># Create directories and files if they don&#39;t exist</span>
</span></span><span class="line"><span class="cl"><span class="k">if</span> <span class="o">[[</span> ! -e <span class="s2">&#34;</span><span class="si">${</span><span class="nv">TARGETDIR</span><span class="si">}</span><span class="s2">/</span><span class="si">${</span><span class="nv">SANIN</span><span class="si">}</span><span class="s2">/&#34;</span> <span class="o">]]</span><span class="p">;</span> <span class="k">then</span>
</span></span><span class="line"><span class="cl">  mkdir -p <span class="s2">&#34;</span><span class="si">${</span><span class="nv">TARGETDIR</span><span class="si">}</span><span class="s2">/</span><span class="si">${</span><span class="nv">SANIN</span><span class="si">}</span><span class="s2">/assets/&#34;</span>
</span></span><span class="line"><span class="cl">  touch <span class="s2">&#34;</span><span class="si">${</span><span class="nv">TARGETDIR</span><span class="si">}</span><span class="s2">/</span><span class="si">${</span><span class="nv">SANIN</span><span class="si">}</span><span class="s2">/index.md&#34;</span>
</span></span><span class="line"><span class="cl">  <span class="nb">echo</span> <span class="s2">&#34;</span><span class="si">${</span><span class="nv">PREFILLTPL</span><span class="si">}</span><span class="s2">&#34;</span> &gt;&gt; <span class="s2">&#34;</span><span class="si">${</span><span class="nv">TARGETDIR</span><span class="si">}</span><span class="s2">/</span><span class="si">${</span><span class="nv">SANIN</span><span class="si">}</span><span class="s2">/index.md&#34;</span>
</span></span><span class="line"><span class="cl"><span class="k">else</span>
</span></span><span class="line"><span class="cl">  <span class="nb">echo</span> <span class="s2">&#34;The directory </span><span class="si">${</span><span class="nv">TARGETDIR</span><span class="si">}</span><span class="s2">/</span><span class="si">${</span><span class="nv">SANIN</span><span class="si">}</span><span class="s2">/ already exists! Aborting.&#34;</span>
</span></span><span class="line"><span class="cl">  <span class="nb">exit</span> <span class="m">1</span>
</span></span><span class="line"><span class="cl"><span class="k">fi</span>
</span></span></code></pre></div><h3 id="how-to-implement">How to Implement</h3>
<ol>
<li>Create a text file named <code>new</code> in your Hugo root directory.</li>
<li>Paste the script above into this file and save it.</li>
<li>Run <code>chmod +x new</code> to make the script executable.</li>
<li>Execute the script with your desired post title using <code>./new &quot;Name of My New Post&quot;</code>.</li>
</ol>
<p>And just like that, you’ve automated a repetitive task, allowing you to shift your focus back to what you do best: creating engaging content.</p>
<h3 id="final-thoughts">Final Thoughts</h3>
<p>This simple Bash script is more than just a tool; it’s a reminder that technology, when used thoughtfully, can enhance our creative processes. By approaching our workflows with curiosity and a willingness to iterate, we can continuously improve our efficiency and the quality of our output.</p>
<p>So, the next time you find yourself bogged down by repetitive tasks, consider how you might simplify, streamline, and innovate. After all, progress isn’t just about moving forward; it’s about finding smarter ways to navigate the journey.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Hugo for Beginners</title>
      <link>https://www.sebastientaggart.com/writing/hugo-for-beginners/</link>
      <pubDate>Fri, 20 Dec 2019 20:58:11 -0500</pubDate>
      <guid>https://www.sebastientaggart.com/writing/hugo-for-beginners/</guid>
      <description>&lt;p&gt;Hugo is a powerful static site generator that stands out for its speed and simplicity. If you’re looking to create a website quickly and efficiently, you&amp;rsquo;ve landed in the right place.&lt;/p&gt;
&lt;h3 id=&#34;quickstart&#34;&gt;Quickstart&lt;/h3&gt;
&lt;p&gt;Let’s get you up and running:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Clone the Repository&lt;/strong&gt;&lt;br&gt;
Start by cloning the repository:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;git clone &amp;lt;this repository&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Initialize Submodules&lt;/strong&gt;&lt;br&gt;
Update your local copy of the academic theme:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;git submodule init  
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;git submodule update --recursive --remote  
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Install Hugo&lt;/strong&gt;&lt;br&gt;
If you&amp;rsquo;re using Homebrew, a simple installation command will suffice:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;brew install hugo  
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;</description>
      <content:encoded><![CDATA[<p>Hugo is a powerful static site generator that stands out for its speed and simplicity. If you’re looking to create a website quickly and efficiently, you&rsquo;ve landed in the right place.</p>
<h3 id="quickstart">Quickstart</h3>
<p>Let’s get you up and running:</p>
<ol>
<li>
<p><strong>Clone the Repository</strong><br>
Start by cloning the repository:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">git clone &lt;this repository&gt;
</span></span></code></pre></div></li>
<li>
<p><strong>Initialize Submodules</strong><br>
Update your local copy of the academic theme:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">git submodule init  
</span></span><span class="line"><span class="cl">git submodule update --recursive --remote  
</span></span></code></pre></div></li>
<li>
<p><strong>Install Hugo</strong><br>
If you&rsquo;re using Homebrew, a simple installation command will suffice:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">brew install hugo  
</span></span></code></pre></div></li>
</ol>
<h3 id="running-your-site-locally">Running Your Site Locally</h3>
<p>To see your work in action, launch the site locally:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">hugo serve  
</span></span></code></pre></div><p>You can view it at <a href="http://localhost:1313/">http://localhost:1313/</a>. To stop the server, simply press <code>Ctrl + C</code>.</p>
<p>If you encounter caching issues, consider using the following command:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">hugo serve --disableFastRender --disableLiveReload --gc  
</span></span></code></pre></div><p>When you&rsquo;re ready to deploy, push your changes to the <code>master</code> branch to trigger a build.</p>
<h3 id="creating-content">Creating Content</h3>
<p>Creating new posts is straightforward. Use this command:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">hugo new post/&lt;long-name-of-post&gt;/  
</span></span></code></pre></div><p>For instance, to create a post about terminal configuration on macOS, you could run:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">hugo new post/configuring-the-perfect-terminal-experience-in-osx/  
</span></span></code></pre></div><p>This will generate an <code>_index.md</code> file within the &ldquo;posts&rdquo; directory, complete with a preconfigured structure ready for your content.</p>
<h3 id="upgrading-hugo">Upgrading Hugo</h3>
<p>To keep your Hugo installation current, simply run:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">brew upgrade hugo  
</span></span></code></pre></div><p>If you installed via a different method, check the <a href="https://gohugo.io/getting-started/installing/">Hugo documentation</a> for guidance. For upgrading the Academic theme itself, follow the same principles.</p>
<p>For a comprehensive list of content management tips and available fields, refer to <a href="https://sourcethemes.com/academic/docs/managing-content/">this documentation</a>.</p>
<h3 id="understanding-categories-and-tags">Understanding Categories and Tags</h3>
<p>You might be wondering about the difference between <strong>Categories</strong> and <strong>Tags</strong>. While they are functionally similar—both serve as Hugo taxonomies—there are some distinctions worth noting:</p>
<ul>
<li>
<p><strong>Tags</strong>: These act as “Topics” in the word cloud on the homepage and are displayed as links at the bottom of individual posts. For example, clicking on a tag like <code>/tags/bash/</code> will lead to a listing page of related posts.</p>
</li>
<li>
<p><strong>Categories</strong>: Think of categories as broader groupings. They allow users to filter posts and are clickable links displayed on posts, including on previews on your homepage.</p>
</li>
</ul>
<p>Here’s how you can structure them in your front matter for clarity:</p>
<pre tabindex="0"><code>---
categories: [&#39;OSX&#39;]
tags: [&#39;OSX Tweaking&#39;, &#39;TEST&#39;]
---
</code></pre><h3 id="the-academic-theme">The Academic Theme</h3>
<p>If you&rsquo;re using the Academic theme, you can find more details here: <a href="https://sourcethemes.com/academic/">Academic Theme Homepage</a> and <a href="https://github.com/gcushen/hugo-academic">GitHub Repository</a>.</p>
<h3 id="handling-images">Handling Images</h3>
<p>When working with images in the Academic theme, follow this structure:</p>
<ul>
<li>Place your images in the <code>./assets</code> directory.</li>
<li>Use relative links in your markdown, like this:<br>
<code>![](assets/my-image.png)</code></li>
</ul>
<p>Many markdown editors, such as Typora and Atom, can be configured to follow this setup automatically.</p>
<h4 id="typora-example">Typora Example</h4>
<p><img alt="Typora Configuration" loading="lazy" src="/writing/hugo-for-beginners/assets/index-6a260c96.png"></p>
<h4 id="atom-example">Atom Example</h4>
<p>As you embark on your Hugo journey, remember that experimentation is key. Embrace the learning process, and don’t hesitate to explore the rich ecosystem that Hugo offers. Happy building!</p>
]]></content:encoded>
    </item>
  </channel>
</rss>
