:\ >Aggelos Arelakis

arelakis.xyz

This site: a self-hosted Django application that bundles a portfolio, a blog with a custom Markdown renderer and a multi-provider LLM agent playground.

The problem

I wanted one place that hosts my portfolio, my writing and my experiments with LLM agents, running on infrastructure I control.

What I built

  • A single Django project split into apps: intro (this page), blog and api (agents).
  • The blog renders posts with a Markdown-to-HTML engine adapted from my python_static_file_generator → project.
  • The agent playground runs queries against several LLM providers (Anthropic, OpenAI, Gemini, Mistral, Cohere, Bedrock, Vertex AI and others) behind a common agent interface, with background jobs and per-user history.
  • Served by Gunicorn behind Nginx.
  • Hosted on AWS: two EC2 instances in a VPC, one for the app and one for monitoring. The monitoring instance only accepts SSH, so Prometheus and Grafana have no public port.
  • Prometheus scrapes host metrics (Node Exporter) and Django metrics (django-prometheus, served only to the monitoring instance) over the private network, and I view the Grafana dashboards through an SSH tunnel.
  • Tested with tINI-test →, my own test framework.
  • The infrastructure (architecture, deployment and monitoring setup) is documented in a public repository; the application source stays private.

Status

Still under development. I ran out of API credits partway through a refactor, so some parts are unfinished, but the main functionality works.

Next steps

  • Let provider API keys be added at runtime through an endpoint, instead of being hard-coded on the server.
  • Add log aggregation, so logs from the web server and the monitoring stack can be searched in one place.