@@ -39,7 +39,7 @@ with DaprClient() as d:
39
39
```
40
40
41
41
#### Specifying an endpoint on initialisation:
42
- When passed as an argument in the constructor, the endpoint takes precedence over any configuration or environment variable.
42
+ When passed as an argument in the constructor, the gRPC endpoint takes precedence over any configuration or environment variable.
43
43
44
44
``` python
45
45
from dapr.clients import DaprClient
@@ -48,14 +48,13 @@ with DaprClient("mydomain:50051?tls=true") as d:
48
48
# use the client
49
49
```
50
50
51
- #### Specifying an endpoint in an environment variable:
52
- You can use the standardised ` DAPR_GRPC_ENDPOINT ` and/or ` DAPR_HTTP_ENDPOINT ` environment variables to
53
- specify the endpoint. When these environment variables are set, the client can be initialised
51
+ #### Specifying the endpoint in an environment variable:
52
+ You can use the standardised ` DAPR_GRPC_ENDPOINT ` environment variable to
53
+ specify the gRPC endpoint. When this variable is set, the client can be initialised
54
54
without any arguments:
55
55
56
56
``` bash
57
57
export DAPR_GRPC_ENDPOINT=" mydomain:50051?tls=true"
58
- export DAPR_HTTP_ENDPOINT=" https://mydomain:443"
59
58
```
60
59
``` python
61
60
from dapr.clients import DaprClient
@@ -65,7 +64,7 @@ with DaprClient() as d:
65
64
```
66
65
67
66
The legacy environment variables ` DAPR_RUNTIME_HOST ` , ` DAPR_HTTP_PORT ` and ` DAPR_GRPC_PORT ` are
68
- also supported, but ` DAPR_GRPC_ENDPOINT ` and ` DAPR_HTTP_ENDPOINT ` take precedence.
67
+ also supported, but ` DAPR_GRPC_ENDPOINT ` takes precedence.
69
68
70
69
71
70
## Building blocks
0 commit comments