@@ -30,12 +30,14 @@ func NewConfigCommand() *cobra.Command {
3030 f .Bool ("http-enabled" , conf .Server .HTTP .Enabled , "switch option for HTTP server" )
3131 f .String ("account-id" , conf .AccountID , "account id" )
3232 f .Int64 ("server-rate-limit" , conf .Server .RateLimit , "the maximum number of requests the server should handle per second" )
33+ f .String ("server-host" , conf .Server .Host , "host/interface to bind the HTTP server" )
3334 f .String ("server-name-override" , conf .Server .NameOverride , "server name override" )
3435 f .String ("grpc-port" , conf .Server .GRPC .Port , "port that GRPC server run on" )
3536 f .Bool ("grpc-tls-enabled" , conf .Server .GRPC .TLSConfig .Enabled , "switch option for GRPC tls server" )
3637 f .String ("grpc-tls-key-path" , conf .Server .GRPC .TLSConfig .KeyPath , "GRPC tls key path" )
3738 f .String ("grpc-tls-cert-path" , conf .Server .GRPC .TLSConfig .CertPath , "GRPC tls certificate path" )
3839 f .String ("http-port" , conf .Server .HTTP .Port , "HTTP port address" )
40+ f .String ("http-grpc-target-host" , conf .Server .HTTP .GRPCTargetHost , "host the HTTP gateway uses to connect to the local gRPC server" )
3941 f .Bool ("http-tls-enabled" , conf .Server .HTTP .TLSConfig .Enabled , "switch option for HTTP tls server" )
4042 f .String ("http-tls-key-path" , conf .Server .HTTP .TLSConfig .KeyPath , "HTTP tls key path" )
4143 f .String ("http-tls-cert-path" , conf .Server .HTTP .TLSConfig .CertPath , "HTTP tls certificate path" )
@@ -154,12 +156,14 @@ func conf() func(cmd *cobra.Command, args []string) error { // Return config han
154156 data = append (data ,
155157 []string {"account_id" , cfg .AccountID , getKeyOrigin (cmd , "account-id" , "PERMIFY_ACCOUNT_ID" )},
156158 // SERVER
159+ []string {"server.host" , cfg .Server .Host , getKeyOrigin (cmd , "server-host" , "PERMIFY_SERVER_HOST" )},
157160 []string {"server.name_override" , fmt .Sprintf ("%v" , cfg .Server .NameOverride ), getKeyOrigin (cmd , "server-name-override" , "PERMIFY_NAME_OVERRIDE" )},
158161 []string {"server.rate_limit" , fmt .Sprintf ("%v" , cfg .Server .RateLimit ), getKeyOrigin (cmd , "server-rate-limit" , "PERMIFY_RATE_LIMIT" )},
159162 []string {"server.grpc.port" , cfg .Server .GRPC .Port , getKeyOrigin (cmd , "grpc-port" , "PERMIFY_GRPC_PORT" )},
160163 []string {"server.grpc.tls.enabled" , fmt .Sprintf ("%v" , cfg .Server .GRPC .TLSConfig .Enabled ), getKeyOrigin (cmd , "grpc-tls-enabled" , "PERMIFY_GRPC_TLS_ENABLED" )},
161164 []string {"server.grpc.tls.cert" , cfg .Server .GRPC .TLSConfig .CertPath , getKeyOrigin (cmd , "grpc-tls-cert-path" , "PERMIFY_GRPC_TLS_CERT_PATH" )},
162165 []string {"server.http.enabled" , fmt .Sprintf ("%v" , cfg .Server .HTTP .Enabled ), getKeyOrigin (cmd , "http-enabled" , "PERMIFY_HTTP_ENABLED" )},
166+ []string {"server.http.grpc_target_host" , cfg .Server .HTTP .GRPCTargetHost , getKeyOrigin (cmd , "http-grpc-target-host" , "PERMIFY_HTTP_GRPC_TARGET_HOST" )},
163167 []string {"server.http.tls.enabled" , fmt .Sprintf ("%v" , cfg .Server .HTTP .TLSConfig .Enabled ), getKeyOrigin (cmd , "http-tls-enabled" , "PERMIFY_HTTP_TLS_ENABLED" )},
164168 []string {"server.http.tls.key" , HideSecret (cfg .Server .HTTP .TLSConfig .KeyPath ), getKeyOrigin (cmd , "http-tls-key-path" , "PERMIFY_HTTP_TLS_KEY_PATH" )},
165169 []string {"server.http.tls.cert" , HideSecret (cfg .Server .HTTP .TLSConfig .CertPath ), getKeyOrigin (cmd , "http-tls-cert-path" , "PERMIFY_HTTP_TLS_CERT_PATH" )},
0 commit comments