Caddyfile in Hoppscotch codebase.
In this article, we review Caddyfile in Hoppscotch codebase. We will look at:
-
What is Hoppscotch?
-
What is Caddyfile?
-
Caddyfile in Hoppscotch.
I study patterns used in an open source project found on Github Trending. For this week, I reviewed some parts of Hoppscotch codebase and wrote this article.

What is Hoppscotch?
Hoppscotch is an open source API development ecosystem — https://hoppscotch.io. It is an alternative to Postman, Insomnia.
Check out the Hoppscotch documentation to learn more.
What is Caddyfile?
Caddyserver is the ultimate server that makes your sites more secure, more reliable, and more scalable.
Caddy automatically obtains and renews TLS certificates for all your sites.

Checkout caddyserver.com to learn more.
Caddyfile
The Caddyfile is a convenient Caddy configuration format for humans. It is most people’s favorite way to use Caddy because it is easy to write, easy to understand, and expressive enough for most use cases.
It looks like this:
example.com {
root * /var/www/wordpress
encode
php_fastcgi unix//run/php/php-version-fpm.sock
file_server
}
(That’s a real, production-ready Caddyfile that serves WordPress with fully-managed HTTPS.)
The basic idea is that you first type the address of your site, then the features or functionality you need your site to have. View more common patterns.
I picked this above information from the Caddy Docs.
Caddyfile in Hoppscotch.
Caddyfile reference is found in 16 files as shown in this search result.

I picked the below code from hoppscotch/packages/hoppscotch-sh-admin/Caddyfile:
{
admin off
persist_config off
}
:8080 {
try_files {path} /
root * /site
file_server
}
About me:
Hey, my name is Ramu Narasinga. I study codebase architecture in large open-source projects.
Email: ramu.narasinga@gmail.com
I spent 200+ hours analyzing Supabase, shadcn/ui, LobeChat. Found the patterns that separate AI slop from production code. Stop refactoring AI slop. Start with proven patterns. Check out production-grade projects at thinkthroo.com