Spaces:
Building
Building
wjm55
Refactor Dockerfile and Nginx configuration to streamline service management. Remove supervisord integration, update CMD to directly start Weaviate and Nginx, and enhance Nginx settings for improved HTTP and gRPC handling.
e081ebf
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; | |
default_type application/octet-stream; | |
sendfile on; | |
upstream weaviate_http { | |
server 127.0.0.1:7860; | |
} | |
upstream weaviate_grpc { | |
server 127.0.0.1:50051; | |
} | |
server { | |
listen 7860 http2; | |
location /v1/ { | |
proxy_pass http://weaviate_http; | |
proxy_set_header Host $host; | |
} | |
location / { | |
grpc_pass grpc://weaviate_grpc; | |
error_page 502 = /error502grpc; | |
} | |
location = /error502grpc { | |
internal; | |
default_type application/grpc; | |
add_header grpc-status 14; | |
add_header grpc-message "unavailable"; | |
return 204; | |
} | |
} | |
} | |