File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 44 web :
55 port : 3000
66 force_ssl :
7+ grpc :
8+ host : ' 0.0.0.0:50051'
79 db :
810 host : localhost
911 port : 5433
Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ def self.defaults
2525 port : 3000 ,
2626 force_ssl : nil ,
2727 } ,
28+ grpc : {
29+ host : '0.0.0.0:50051' ,
30+ } ,
2831 log_level : 'info' ,
2932 db : {
3033 host : 'localhost' ,
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ module Grpc
55 class Launcher
66 include Code0 ::ZeroTrack ::Loggable
77
8- HOST = '0.0.0.0:50051'
8+ HOST = Sagittarius :: Configuration . config [ :rails ] [ :grpc ] [ :host ]
99
1010 def create_server
1111 @server = GRPC ::RpcServer . new ( interceptors : [
@@ -15,7 +15,6 @@ def create_server
1515 ] . reverse ) # grpc handles interceptors in opposite order. Reversing so we can list them in top-to-bottom order
1616 logger . info ( 'GRPC server created' )
1717
18- # TODO: make this configurable
1918 @server . add_http2_port ( HOST , :this_port_is_insecure )
2019
2120 logger . info ( 'Loading application' )
You can’t perform that action at this time.
0 commit comments