Skip to content

Commit e45a398

Browse files
committed
chore(docs): update http server artifact version
Signed-off-by: Eric Gregory <egregory04@gmail.com>
1 parent 047886b commit e45a398

File tree

10 files changed

+22
-22
lines changed

10 files changed

+22
-22
lines changed

docs/concepts/applications.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ spec:
5757
- name: httpserver
5858
type: capability
5959
properties:
60-
image: ghcr.io/wasmcloud/http-server:0.22.0
60+
image: ghcr.io/wasmcloud/http-server:0.26.0
6161
traits:
6262
# Link the HTTP server and set it to listen on the local machine's port 8080
6363
- type: link
@@ -69,7 +69,7 @@ spec:
6969
source_config:
7070
- name: default-http
7171
properties:
72-
ADDRESS: 127.0.0.1:8080
72+
ADDRESS: 0.0.0.0:8000
7373
```
7474
7575
:::info[Write less YAML]

docs/concepts/linking-components/linking-at-runtime.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,10 @@ spec:
206206
- name: httpserver
207207
type: capability
208208
properties:
209-
image: ghcr.io/wasmcloud/http-server:0.22.0
209+
image: ghcr.io/wasmcloud/http-server:0.26.0
210210
traits:
211211
# Link the httpserver to the component, and configure the HTTP server
212-
# to listen on port 8080 for incoming requests
212+
# to listen on port 8000 for incoming requests
213213
- type: link
214214
properties:
215215
target: http-component
@@ -219,7 +219,7 @@ spec:
219219
source_config:
220220
- name: default-http
221221
properties:
222-
address: 127.0.0.1:8080
222+
address: 0.0.0.0:8000
223223
```
224224

225225
- The http-component is **exporting on the wasi-http interface** and **importing on a custom "pingpong" interface**. It is the importer in relation to the pong-component, so it is the source for that link.
@@ -284,7 +284,7 @@ spec:
284284
- name: httpserver
285285
type: capability
286286
properties:
287-
image: ghcr.io/wasmcloud/http-server:0.25.0
287+
image: ghcr.io/wasmcloud/http-server:0.26.0
288288
traits:
289289
# Link definition for httpserver -> http-component
290290
- type: link
@@ -296,7 +296,7 @@ spec:
296296
source_config:
297297
- name: default-http
298298
properties:
299-
address: 127.0.0.1:8000
299+
address: 0.0.0.0:8000
300300
```
301301

302302
- The http-component is **importing functions on the keyvalue interface**. It is the **importer** in relation to **kvredis**, meaning that it is the source for the link definition: the link is defined as a trait of http-component.

docs/concepts/packaging.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Once a component or provider is published to a registry, you can include it in a
4949
- name: http-server
5050
type: capability
5151
properties:
52-
image: ghcr.io/wasmcloud/http-server:0.23.2
52+
image: ghcr.io/wasmcloud/http-server:0.26.0
5353
```
5454
5555
In the manifest excerpt above, the `http-server` capability provider is included in an application via an artifact (or "image") stored on a GitHub Packages registry. You can learn more about application manifests on the [Defining Applications](/docs/ecosystem/wadm/model) page.

docs/concepts/secrets.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,11 @@ spec:
190190
- name: httpserver
191191
type: capability
192192
properties:
193-
image: ghcr.io/wasmcloud/http-server:0.23.1
193+
image: ghcr.io/wasmcloud/http-server:0.26.0
194194
id: auth-http-server
195195
traits:
196196
# Link the httpserver to the component, and configure the HTTP server
197-
# to listen on port 8080 for incoming requests
197+
# to listen on port 8000 for incoming requests
198198
#
199199
# Since the HTTP server calls the `counter` component, we establish
200200
# a unidirectional link from this `httpserver` provider (the "source")
@@ -211,7 +211,7 @@ spec:
211211
config:
212212
- name: default-http
213213
properties:
214-
address: 0.0.0.0:8080
214+
address: 0.0.0.0:8000
215215
```
216216
217217
## Defining secrets on the command line
@@ -469,21 +469,21 @@ You can first verify that unauthenticated requests to Redis and the component ar
469469
➜ redis-cli -u redis://127.0.0.1:6379 keys '*'
470470
(error) NOAUTH Authentication required.
471471
472-
➜ curl 127.0.0.1:8080/counter
472+
➜ curl 127.0.0.1:8000/counter
473473
Unauthorized
474474
```
475475

476476
Then, authenticating passes the check in the component:
477477

478478
```bash
479-
➜ curl -H "password: opensesame" 127.0.0.1:8080/counter
479+
➜ curl -H "password: opensesame" 127.0.0.1:8000/counter
480480
Counter /counter: 1
481481
```
482482

483483
Passing in an invalid password will still fail the authentication check:
484484

485485
```bash
486-
➜ curl -H "password: letmein" 127.0.0.1:8080/counter
486+
➜ curl -H "password: letmein" 127.0.0.1:8000/counter
487487
Unauthorized
488488
```
489489

docs/deployment/k8s/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ When you're using the HTTP Server provider in an application that will run on Ku
152152
- name: httpserver
153153
type: capability
154154
properties:
155-
image: ghcr.io/wasmcloud/http-server:0.21.0
155+
image: ghcr.io/wasmcloud/http-server:0.26.0
156156
traits:
157157
- type: link
158158
properties:

docs/developer/components/configure.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ spec:
198198
- name: httpserver
199199
type: capability
200200
properties:
201-
image: ghcr.io/wasmcloud/http-server:0.22.0
201+
image: ghcr.io/wasmcloud/http-server:0.26.0
202202
traits:
203203
- type: link
204204
properties:

docs/developer/providers/configure.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ spec:
195195
- name: httpserver
196196
type: capability
197197
properties:
198-
image: ghcr.io/wasmcloud/http-server:0.22.0
198+
image: ghcr.io/wasmcloud/http-server:0.26.0
199199
traits:
200200
- type: link
201201
properties:

docs/ecosystem/wadm/model.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ spec:
259259
- name: httpserver
260260
type: capability
261261
properties:
262-
image: ghcr.io/wasmcloud/http-server:0.25.0
262+
image: ghcr.io/wasmcloud/http-server:0.26.0
263263
traits:
264264
# Link definition for httpserver -> http-component
265265
- type: link
@@ -271,7 +271,7 @@ spec:
271271
source_config:
272272
- name: default-http
273273
properties:
274-
address: 127.0.0.1:8000
274+
address: 0.0.0.0:8000
275275
```
276276

277277
## Further reading

docs/examples/rust/providers/http-server/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ components:
7575
- name: httpserver
7676
type: capability
7777
properties:
78-
image: ghcr.io/wasmcloud/http-server:0.25.0
78+
image: ghcr.io/wasmcloud/http-server:0.26.0
7979
config:
8080
- name: http-config
8181
properties:

docs/tour/scale-and-distribute.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ spec:
6969
- name: httpserver
7070
type: capability
7171
properties:
72-
image: ghcr.io/wasmcloud/http-server:0.25.0
72+
image: ghcr.io/wasmcloud/http-server:0.26.0
7373
traits:
7474
- type: link
7575
properties:
@@ -80,7 +80,7 @@ spec:
8080
source_config:
8181
- name: default-http
8282
properties:
83-
address: 127.0.0.1:8000
83+
address: 0.0.0.0:8000
8484
```
8585
8686
* `kvredis` is defined as a `capability` provider and fetched from an OCI image.

0 commit comments

Comments
 (0)