Sphinx Résumé

Raspberry PI

This Raspberry PI currently hosts my Bot and this CV.

I have set up port forwarding between my router and my RPI, allowing access via HTTP. When you make an HTTPS request, it reaches my Traefik instance, included in K3s, which I configured to route traffic to the container hosting this CV.

Traefik also handles the management and automatic renewal of the certificate via Let’s Encrypt.

Sphinx / CV

Installation

A Docker image was created based on the default Sphinx image to:

  • Install the required dependencies for Sphinx

  • Set up SSH configurations to simplify git pull operations

  • Create a sphinx-config.sh script that:

    • Retrieves an RSA key via a K3s secret

    • Pulls my repository

    • Initializes a Sphinx base

    • Installs the theme

    • Copies the items from my repository to the correct location

    • Generates the HTML from the repository items

    • Starts an HTTP/HTTPS server

    • Restarts Nginx

Update Process

Currently, a simple SSH command with a dedicated user allows me to create a new container and remove the old one.

In the long run, a Git hook will handle this automatically.