Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom error paths #12

Merged
merged 3 commits into from
Sep 3, 2024
Merged

Custom error paths #12

merged 3 commits into from
Sep 3, 2024

Conversation

kevinmcconnell
Copy link
Collaborator

@kevinmcconnell kevinmcconnell commented Sep 3, 2024

Allows setting the path to a set of custom error templates, on a per-service basis. This is to allow people to brand the error pages to suit their apps. It's entirely optional -- if not set, we use the built-in templates.

To specify a path for error templates, use --error-pages when deploying, e.g.:

kamal-proxy deploy myservice --target=something:80 --error-pages=/usr/local/share/errors/myservice

When a proxy error occurs, we'll first try to render a service-specific template, if they have been configured. If we don't have a template there (because there's no custom path, or because the path doesn't include a template for the error we're rendering) then we fall back to the default set.

@kevinmcconnell kevinmcconnell merged commit beb1aef into main Sep 3, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant