Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

NGINX example of stripping count headers #65

Closed
begriffs opened this issue Apr 24, 2017 · 4 comments
Closed

NGINX example of stripping count headers #65

begriffs opened this issue Apr 24, 2017 · 4 comments
Labels
how-tos Goal oriented guides. Not in depth.

Comments

@begriffs
Copy link
Member

Fill in the missing example in https://postgrest.com/en/v0.4/admin.html#count-header-dos

@steve-chavez steve-chavez added the how-tos Goal oriented guides. Not in depth. label Aug 15, 2019
@steve-chavez
Copy link
Member

steve-chavez commented Aug 15, 2019

We can probably make this how-to a bit more generic and also show how to add headers and read them in PostgREST.

Like passing the complete url through a header or an X-Request-Id using nginx $request_id.

I think now that trying to make these generic is a bad idea. Of course, how-tos should be focused and then the user can extrapolate to other use cases.

@steve-chavez
Copy link
Member

Btw, I'll delete the placeholder Nginx snippet in http://postgrest.org/en/v5.2/admin.html#count-header-dos. Looks a bit sloppy for official docs.

@steve-chavez
Copy link
Member

Seems this can be done with a combination of https://serverfault.com/a/360151/468864 and https://stackoverflow.com/a/44537739/4692662.

Another choice is doing it with openresty https://stackoverflow.com/a/53086188/4692662. But I think we should stick to plain Nginx where possible.

@wolfgangwalther
Copy link
Member

Superseded by PostgREST/postgrest#2987

@wolfgangwalther wolfgangwalther closed this as not planned Won't fix, can't repro, duplicate, stale Feb 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
how-tos Goal oriented guides. Not in depth.
Development

No branches or pull requests

3 participants