Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions Resources/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ http {
gzip_min_length 256;
gzip_types application/atom+xml application/geo+json application/javascript application/x-javascript application/json application/ld+json application/manifest+json application/rdf+xml application/rss+xml application/xhtml+xml application/xml font/eot font/otf font/ttf image/svg+xml text/css text/javascript text/plain text/xml;

resolver 127.0.0.11 valid=30s;
resolver 127.0.0.11 valid=10s;

geo $limit {
default 1;
Expand All @@ -68,6 +68,11 @@ http {
limit_conn_zone $binary_remote_addr zone=addr:20m;
proxy_cache_path /tmp/cache levels=1:2 keys_zone=small:40m inactive=10d max_size=2g use_temp_path=off;

upstream gqle {
zone upstream_dynamic 64k;
server graphql-engine:8080 resolve;
}

server {
listen 80 deferred;
server_name _;
Expand All @@ -92,7 +97,7 @@ http {
proxy_set_header Host $http_host;
proxy_redirect off;
set $upstream_graphql graphql-engine;
proxy_pass http://$upstream_graphql:8080/;
proxy_pass http://gqle/;
}

location /graphql/console {
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ services:
- ./Resources/nginx/ssl:/ssl:ro
- graphql_cache:/tmp/cache
graphql-engine:
image: hasura/graphql-engine:v2.45.1
image: hasura/graphql-engine:v2.48.1
ports:
- "8080:8080"
depends_on:
Expand Down