Homelab/nomad_jobs/services/domainredirect
2024-02-20 14:51:36 -08:00
..
domainredirect.nomad.hcl Add DomainRedirect Service 2024-02-20 14:51:36 -08:00
readme.md Add DomainRedirect Service 2024-02-20 14:51:36 -08:00

domainredirect

domainredirect is just a redirect service that will redirect any traffic to the url you you specify. This is useful for redirecting traffic from one domain to another.

Nomad Job for domainredirect

The domainredirect expects a REDIRECT_TARGET environment variable to be set. This is the complete url that the domainredirect will redirect to. You can set it on line 2 of the job spec.

TODO

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

Line Default Adjustment
2 HOST = "example.local" Change example.local to the domain you are listening on
3 TARGET = "https://example.com/path" Change example.com/path to your destination

Request

If you are deploying this regularly, please consider pulling the image and pushing it to your own registry. This will help reduce the load on my registry and help keep the image available for everyone. (Although it's not that complex, you could also build the image yourself.)