Homelab/nomad_jobs/services/caddy/readme.md
2024-02-06 12:58:24 -08:00

1.0 KiB

Caddy Web Server

Caddy is a simple and performant web server / reverse proxy written in Go. It is designed to be easy to use and configure. It is great to test network connectivity and routing similar to how someone might use nginx just to make sure the host can be reached and server content.

While you can absolutely use Caddy as a reverse proxy, Traefik easily integrates with consul for service discovery so that is what is used for the reverse proxy and this nomad job spec is placed behind Traefik.

Nomad Job for Caddy

There are no caddy configurations configured for this job spec. If you run it, it will register with consul and be available to Traefik for routing. If the domain name is configured correctly, you should be able to reach the Caddy welcome page.

TODO

If you want to deploy this, you will need to update the domain name in the job spec.

Line Default Adjustment
23 "traefik.http.routers.caddy.rule=Host('example.com')" Change example.com to your domain name