Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .env.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# [ad_server]
TRUSTED_SERVER__AD_SERVER__AD_PARTNER_URL=http://127.0.0.1:10180

# [synthetic]
TRUSTED_SERVER__SYNTHETIC__COUNTER_STORE=counter_store
TRUSTED_SERVER__SYNTHETIC__OPID_STORE=opid_store
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Upgrade to fastly-cli 11.3.0
- Changed to use constants for headers
- Changed to use log statements
- Updated fastly.toml for local development

## [1.0.6] - 2025-05-29

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

- Implemented GDPR consent for creating and passing synth headers


## [1.0.4] - 2025-04-29

### Added
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,13 @@ cargo install viceroy
```

#### Run Fastly server locally
Review configuration for [local_server](fastly.toml#L16)
- Review configuration for [local_server](fastly.toml#L16)
- Review env variables overrides in [.env.dev](.env.dev)

```sh
export $(grep -v '^#' .env.dev | xargs -0)
```

```sh
fastly -i compute serve
```
Expand Down
2 changes: 1 addition & 1 deletion crates/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ license = "Apache-2.0"
chrono = "0.4"
config = "0.15.11"
cookie = "0.18.1"
fastly = "0.11.2"
fastly = "0.11.5"
futures = "0.3"
handlebars = "6.3.2"
hex = "0.4.3"
Expand Down
3 changes: 3 additions & 0 deletions crates/fastly/tests/kv_store/counter_store.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"synthetic_id": 10
}
3 changes: 3 additions & 0 deletions crates/fastly/tests/kv_store/opid_store.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"synthetic_id": 10
}
10 changes: 5 additions & 5 deletions fastly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

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

[local_server]
[local_server.backends]
[local_server.backends.equativ_ad_api_2] # FIX ME: must match config
url = "http://127.0.0.1/"
[local_server.backends.ad_partner_url]
url = "http://127.0.0.1:10180/"

[local_server.kv_stores]
[[local_server.kv_stores.jevans_synth_id_counter]] # FIX ME: must match config
[[local_server.kv_stores.counter_store]]
key = "placeholder"
data = "placeholder"

[[local_server.kv_stores.jevans_synth_id_opid]] # FIX ME: must match config
[[local_server.kv_stores.opid_store]]
key = "placeholder"
data = "placeholder"