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

Document custom error page restrictions. #2104

Merged

Conversation

timoreimann
Copy link
Contributor

@containous/traefik PTAL.

In particular, someone with sufficient expertise please acknowledge that custom error pages can really be used with the key/value stores we support.

Refs #2035.

@traefiker traefiker added this to the 1.4 milestone Sep 11, 2017
@timoreimann timoreimann force-pushed the document-custom-error-pages-restrictions branch from 84274e5 to ae037f0 Compare September 11, 2017 21:20
@@ -242,6 +242,8 @@ Instead, the query parameter can also be set to some generic error page like so:
Now the `500s.html` error page is returned for the configured code range.
The configured status code ranges are inclusive; that is, in the above example, the `500s.html` page will be returned for status codes `500` through, and including, `599`.

Custom error pages are easiest to implement using the file provider or one of the supported K/V stores. For other dynamic providers, the corresponding template file needs to be customized accordingly and referenced in the Traefik configuration.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add one sentence by line?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

juliens
juliens previously approved these changes Sep 13, 2017
Copy link
Member

@juliens juliens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM see comment below

@juliens juliens dismissed their stale review September 13, 2017 13:51

It doesn't work with k/v store

@juliens
Copy link
Member

juliens commented Sep 13, 2017

In fact, all the k/v store use kv provider

ex. https://github.com/containous/traefik/blob/master/provider/etcd/etcd.go#L18

type Provider struct {
	kv.Provider `mapstructure:",squash"`
}

and the kv provider use template https://github.com/containous/traefik/blob/master/provider/kv/kv.go#L149

and there is no status in the template

@timoreimann
Copy link
Contributor Author

@juliens thanks for digging into this. I updated the documentation.

Let me know what you think.

Copy link
Contributor

@ldez ldez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@juliens juliens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@nmengin nmengin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 📖 👏

This encompasses which kinds of providers can embed custom error pages.
@ldez ldez force-pushed the document-custom-error-pages-restrictions branch from 8284e14 to 46b1772 Compare September 14, 2017 06:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants