weaviate-test3 / nginx.conf
wjbmattingly's picture
Upload 2 files
6ab6872 verified
raw
history blame contribute delete
818 Bytes
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;
}
}
}