Proxy Service¶
The Proxy Service is a gRPC & Go based proxy configuration service. The proxy settings of the Edge Devices are configured through this service.
This service configures a Redsocks transparent proxy on the device, enabling communication with HTTP proxy servers using the http-connect
mode. Only connections via HTTP proxies are supported.
Table of Contents¶
SysProxy.proto¶
ProxyConfig¶
Interface type holds settings for a proxy server.
Field | Type | Label | Description |
---|---|---|---|
proxyAddress | string | Hostname/IP and port (separated by colon) of the proxy server | |
auth | Authentication | Authentication details for accessing the proxy | |
noProxyAddresses | string | repeated | List of addresses or domains to bypass the proxy |
httpCustomPorts | int32 | repeated | Custom HTTP ports for the proxy server (optional) |
httpsCustomPorts | int32 | repeated | Custom HTTPS ports for the proxy server (optional) |
Authentication¶
Type that contains authentication details for the proxy server.
Field | Type | Label | Description |
---|---|---|---|
userName | string | ||
password | string |
ProxyConfigService¶
ProxyConfigService uses a UNIX Domain Socket "/var/run/devicemodel/sysproxy.sock" for GRPC communication. protoc generates both client and server instance for this Service. GRPC Status codes : https://developers.google.com/maps-booking/reference/grpc-api/status_codes .
Method Name | Request Type | Response Type | Description |
---|---|---|---|
SetConfig | ProxyConfig | .google.protobuf.Empty | Set the proxy server configuration |
RemoveConfig | .google.protobuf.Empty | .google.protobuf.Empty | Remove the proxy server configuration |
GetConfig | .google.protobuf.Empty | ProxyConfig | Returns the proxy server configuration |