Skip to content

Commit c76bec6

Browse files
authored
Merge pull request #208 from vdice/examples/allowed-outbound
chore(*): update examples/test-app with allowed_outbound_hosts
2 parents 5dfb336 + 42ccfd3 commit c76bec6

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

examples/javascript/outbound-http/spin.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ component = "hello"
1111

1212
[component.hello]
1313
source = "target/spin-outbound-http.wasm"
14-
allowed_http_hosts = ["random-data-api.fermyon.app"]
14+
allowed_outbound_hosts = ["https://random-data-api.fermyon.app"]
1515
files = ["src/index.js"]
1616
[component.hello.build]
1717
command = "npm run build"

examples/javascript/planetscale/spin.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ component = "planetscale"
1111

1212
[component.planetscale]
1313
source = "target/spin-planetscale.wasm"
14-
allowed_http_hosts = ["aws.connect.psdb.cloud"]
14+
allowed_outbound_hosts = ["https://aws.connect.psdb.cloud"]
1515
files = ["src/index.js"]
1616
[component.planetscale.build]
1717
command = "npm run build"

examples/typescript/outbound_http/spin.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ component = "hello"
1414

1515
[component.hello]
1616
source = "target/spin-outbound-http.wasm"
17-
allowed_http_hosts = ["random-data-api.fermyon.app"]
17+
allowed_outbound_hosts = ["https://random-data-api.fermyon.app"]
1818
[component.hello.variables]
1919
message = "I'm a {{object}}"
2020
[component.hello.build]

examples/typescript/outbound_mysql/spin.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ component = "hello"
1111

1212
[component.hello]
1313
source = "target/spin-outbound-mysql.wasm"
14-
allowed_outbound_hosts = ["mysql://127.0.0.1:3306"]
14+
allowed_outbound_hosts = ["mysql://127.0.0.1"]
1515
[component.hello.build]
1616
command = "npm run build"

examples/typescript/outbound_pg/spin.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ component = "hello"
1111

1212
[component.hello]
1313
source = "target/spin-outbound-pg.wasm"
14-
allowed_outbound_hosts = ["localhost:5432"]
14+
allowed_outbound_hosts = ["postgres://localhost"]
1515
[component.hello.build]
1616
command = "npm run build"

examples/typescript/outbound_redis/spin.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ component = "hello"
1111

1212
[component.hello]
1313
source = "target/spin-outbound-redis.wasm"
14-
allowed_outbound_hosts = ["redis://localhost:6379"]
14+
allowed_outbound_hosts = ["redis://localhost"]
1515
[component.hello.build]
1616
command = "npm run build"

examples/typescript/planetscale/spin.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ component = "planetscale"
1111

1212
[component.planetscale]
1313
source = "target/spin-planetscale.wasm"
14-
allowed_http_hosts = ["aws.connect.psdb.cloud"]
14+
allowed_outbound_hosts = ["https://aws.connect.psdb.cloud"]
1515
[component.planetscale.build]
1616
command = "npm run build"

test/test-app/spin.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ component = "test-app"
1313
[component.test-app]
1414
source = "target/spin-http-js.wasm"
1515
files = [{ source = "src/", destination = "/" }, ]
16-
allowed_http_hosts = ["http://localhost:3000"]
16+
allowed_outbound_hosts = ["http://localhost:3000"]
1717
sqlite_databases = ["default"]
1818
[component.test-app.build]
1919
command = "npm run build"

0 commit comments

Comments
 (0)