sharenet/registry/Caddyfile
continuist 03dac72b90
Some checks are pending
CI/CD Pipeline (Fully Isolated DinD) / Run Tests (DinD) (push) Waiting to run
CI/CD Pipeline (Fully Isolated DinD) / Build and Push Docker Images (DinD) (push) Blocked by required conditions
CI/CD Pipeline (Fully Isolated DinD) / Deploy to Production (push) Blocked by required conditions
Switch to Caddy + Docker Registry
2025-07-13 10:26:07 -04:00

25 lines
No EOL
478 B
Caddyfile

(registry_auth) {
basicauth {
{env.REGISTRY_USERNAME} {env.REGISTRY_PASSWORD_HASH}
}
}
https://registry.example.com {
import registry_auth
reverse_proxy registry:5000
header {
X-Content-Type-Options nosniff
}
@push method POST PUT PATCH DELETE
handle @push {
import registry_auth
reverse_proxy registry:5000
}
@pull method GET HEAD OPTIONS
handle @pull {
reverse_proxy registry:5000
}
}