mirror of https://github.com/dapr/docs.git
Merge branch 'v1.3' into wn
This commit is contained in:
commit
a5e464def9
|
@ -416,6 +416,10 @@ app.post('/dsstatus', (req, res) => {
|
||||||
|
|
||||||
{{< /tabs >}}
|
{{< /tabs >}}
|
||||||
|
|
||||||
|
{{% alert title="Note on message redelivery" color="primary" %}}
|
||||||
|
Some pubsub components (e.g. Redis) will redeliver a message if a response is not sent back within a specified time window. Make sure to configure metadata such as `processingTimeout` to customize this behavior. For more information refer to the respective [component references]({{< ref supported-pubsub >}}).
|
||||||
|
{{% /alert %}}
|
||||||
|
|
||||||
## (Optional) Step 5: Publishing a topic with code
|
## (Optional) Step 5: Publishing a topic with code
|
||||||
|
|
||||||
{{< tabs Node PHP>}}
|
{{< tabs Node PHP>}}
|
||||||
|
|
|
@ -125,6 +125,9 @@ spec:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: redis
|
name: redis
|
||||||
key: redis-password
|
key: redis-password
|
||||||
|
# uncomment below for connecting to redis cache instances over TLS (ex - Azure Redis Cache)
|
||||||
|
# - name: enableTLS
|
||||||
|
# value: true
|
||||||
```
|
```
|
||||||
|
|
||||||
This example uses the kubernetes secret that was created when setting up a cluster with the above instructions.
|
This example uses the kubernetes secret that was created when setting up a cluster with the above instructions.
|
||||||
|
@ -153,6 +156,9 @@ spec:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: redis
|
name: redis
|
||||||
key: redis-password
|
key: redis-password
|
||||||
|
# uncomment below for connecting to redis cache instances over TLS (ex - Azure Redis Cache)
|
||||||
|
# - name: enableTLS
|
||||||
|
# value: true
|
||||||
```
|
```
|
||||||
|
|
||||||
This example uses the kubernetes secret that was created when setting up a cluster with the above instructions.
|
This example uses the kubernetes secret that was created when setting up a cluster with the above instructions.
|
||||||
|
@ -179,6 +185,9 @@ spec:
|
||||||
value: <HOST>
|
value: <HOST>
|
||||||
- name: redisPassword
|
- name: redisPassword
|
||||||
value: <PASSWORD>
|
value: <PASSWORD>
|
||||||
|
# uncomment below for connecting to redis cache instances over TLS (ex - Azure Redis Cache)
|
||||||
|
# - name: enableTLS
|
||||||
|
# value: true
|
||||||
```
|
```
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
@ -195,6 +204,9 @@ spec:
|
||||||
value: <HOST>
|
value: <HOST>
|
||||||
- name: redisPassword
|
- name: redisPassword
|
||||||
value: <PASSWORD>
|
value: <PASSWORD>
|
||||||
|
# uncomment below for connecting to redis cache instances over TLS (ex - Azure Redis Cache)
|
||||||
|
# - name: enableTLS
|
||||||
|
# value: true
|
||||||
```
|
```
|
||||||
|
|
||||||
## Apply the configuration
|
## Apply the configuration
|
||||||
|
|
|
@ -61,7 +61,7 @@ spec:
|
||||||
my_claim := jwt.payload["my-claim"]
|
my_claim := jwt.payload["my-claim"]
|
||||||
}
|
}
|
||||||
jwt = { "payload": payload } {
|
jwt = { "payload": payload } {
|
||||||
auth_header := input.request.headers["authorization"]
|
auth_header := input.request.headers["Authorization"]
|
||||||
[_, jwt] := split(auth_header, " ")
|
[_, jwt] := split(auth_header, " ")
|
||||||
[_, payload, _] := io.jwt.decode(jwt)
|
[_, payload, _] := io.jwt.decode(jwt)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue