Skip to content

Commit b33c96d

Browse files
authored
Streamline fastly.toml for local development
1 parent b353fc2 commit b33c96d

File tree

7 files changed

+26
-8
lines changed

7 files changed

+26
-8
lines changed

.env.dev

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# [ad_server]
2+
TRUSTED_SERVER__AD_SERVER__AD_PARTNER_URL=http://127.0.0.1:10180
3+
4+
# [synthetic]
5+
TRUSTED_SERVER__SYNTHETIC__COUNTER_STORE=counter_store
6+
TRUSTED_SERVER__SYNTHETIC__OPID_STORE=opid_store

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3636
- Upgrade to fastly-cli 11.3.0
3737
- Changed to use constants for headers
3838
- Changed to use log statements
39+
- Updated fastly.toml for local development
3940

4041
## [1.0.6] - 2025-05-29
4142

@@ -56,7 +57,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5657

5758
- Implemented GDPR consent for creating and passing synth headers
5859

59-
6060
## [1.0.4] - 2025-04-29
6161

6262
### Added

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,13 @@ cargo install viceroy
119119
```
120120

121121
#### Run Fastly server locally
122-
Review configuration for [local_server](fastly.toml#L16)
122+
- Review configuration for [local_server](fastly.toml#L16)
123+
- Review env variables overrides in [.env.dev](.env.dev)
124+
125+
```sh
126+
export $(grep -v '^#' .env.dev | xargs -0)
127+
```
128+
123129
```sh
124130
fastly -i compute serve
125131
```

crates/common/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ license = "Apache-2.0"
1212
chrono = "0.4"
1313
config = "0.15.11"
1414
cookie = "0.18.1"
15-
fastly = "0.11.2"
15+
fastly = "0.11.5"
1616
futures = "0.3"
1717
handlebars = "6.3.2"
1818
hex = "0.4.3"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"synthetic_id": 10
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"synthetic_id": 10
3+
}

fastly.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
authors = ["[email protected]"]
55
cloned_from = "https://github.com/fastly/compute-starter-kit-rust-default"
6-
description = "aslk"
6+
description = "Trusted Server"
77
language = "rust"
88
manifest_version = 3
99
name = "trusted-server-fastly"
@@ -15,14 +15,14 @@ build = """
1515

1616
[local_server]
1717
[local_server.backends]
18-
[local_server.backends.equativ_ad_api_2] # FIX ME: must match config
19-
url = "http://127.0.0.1/"
18+
[local_server.backends.ad_partner_url]
19+
url = "http://127.0.0.1:10180/"
2020

2121
[local_server.kv_stores]
22-
[[local_server.kv_stores.jevans_synth_id_counter]] # FIX ME: must match config
22+
[[local_server.kv_stores.counter_store]]
2323
key = "placeholder"
2424
data = "placeholder"
2525

26-
[[local_server.kv_stores.jevans_synth_id_opid]] # FIX ME: must match config
26+
[[local_server.kv_stores.opid_store]]
2727
key = "placeholder"
2828
data = "placeholder"

0 commit comments

Comments
 (0)