Use extra nginx reverse proxy for cors issue/proper preflight caching #15

Open
opened 2020-06-14 01:38:31 +02:00 by christoph.lienhard · 0 comments
christoph.lienhard commented 2020-06-14 01:38:31 +02:00 (Migrated from git.verdigado.com)

Currently, postgraphile takes care of cors, however this may lead to significant performance issues in production since preflight-caching doesn't really work (see this github issue/comment.

Add an nginx pod to the docker-compose setup which reverse-proxies to the graphql container and takes care of preflight caching. See e.g. nginx reverse proxy in docker-compose.

Currently, postgraphile takes care of cors, however this may lead to significant performance issues in production since preflight-caching doesn't really work (see [this github issue/comment](https://github.com/graphile/postgraphile/issues/84#issuecomment-243053660). Add an nginx pod to the docker-compose setup which reverse-proxies to the graphql container and takes care of preflight caching. See e.g. [nginx reverse proxy in docker-compose](https://www.domysee.com/blogposts/reverse-proxy-nginx-docker-compose).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: NB-Public/kandimat#15
No description provided.