Spaces:
Building
Building
File size: 818 Bytes
e081ebf 72f5836 e081ebf 72f5836 e081ebf 72f5836 e081ebf 72f5836 e081ebf |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
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;
}
}
}
|