Skip to content

Commit

Permalink
chore: downgrade http traffic to v1
Browse files Browse the repository at this point in the history
  • Loading branch information
cif committed Jan 5, 2025
1 parent 4a4924d commit fe42302
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nginx.prod.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ events {}

http {
upstream http_upstream {
server 127.0.0.1:8081;
server localhost:8081;
}

upstream grpc_upstream {
server 127.0.0.1:50051;
server localhost:50051;
}

server {
Expand All @@ -18,6 +18,8 @@ http {
grpc_pass grpc://grpc_upstream;
}
proxy_pass http://http_upstream;
proxy_http_version 1.1; # Force HTTP/1.1 for upstream
proxy_set_header Connection ""; # Disable keep-alive
}
}
}
1 change: 1 addition & 0 deletions src/main/kotlin/com/stabledata/Application.kt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ fun main() {
.intercept(GrpcContextInterceptor())
.intercept(ExceptionHandlingInterceptor())
.addService(SchemaService())

.addService(ProtoReflectionService.newInstance())
.build()

Expand Down

0 comments on commit fe42302

Please sign in to comment.