fix: use resolved upstream

This commit is contained in:
Naramsim 2025-06-13 05:58:01 +02:00
parent 0ae8b4e99a
commit fbaa2172f5
2 changed files with 8 additions and 3 deletions

View File

@ -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;
@ -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 _;
@ -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 {

View File

@ -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: