Skip to content

Commit ce13903

Browse files
committed
fix: bump docker-compose version, fix small issues, update docs
1 parent 14ebfad commit ce13903

File tree

5 files changed

+54
-2
lines changed

5 files changed

+54
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ ENV_FILE := .env
3737
.PHONY: setup
3838
setup:
3939
@if [ ! -f $(ENV_FILE) ]; then \
40-
cp env.example .env && echo "Created .env from env.example"; \
40+
cp .env-example .env && echo "Created .env from .env-example"; \
4141
else \
4242
echo ".env already exists"; \
4343
fi

config/config.prividium.docker.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,20 @@ max_attempts = 10
4646
base_backoff_secs = 30 # First retry: 30s
4747
max_backoff_secs = 1800 # Cap at 30 minutes
4848

49+
# -----------------------------------------------------------------
50+
# Payload Pruning (Data minimization / retention)
51+
# -----------------------------------------------------------------
52+
53+
[payload_pruning]
54+
# Run pruning once every hour
55+
interval_secs = 3600
56+
57+
# Retain payloads for 7 days
58+
retention_days = 7
59+
60+
# Max rows to prune per batch
61+
batch_size = 5000
62+
4963
# -----------------------------------------------------------------
5064
# Resilience & Supervision (Failure handling)
5165
# -----------------------------------------------------------------
@@ -73,6 +87,7 @@ max_worker_backoff_secs = 60 # Cap waiting at 1 min
7387
[chain]
7488
name = "zksyncos_prividium"
7589
chain_id = 8022834
90+
mode = "Prividium"
7691

7792
# RPC Provider URL
7893
# Note: For local development against a local node, use "http://127.0.0.1:8545"

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ services:
2323
restart: unless-stopped
2424

2525
webhook-service:
26-
image: quay.io/matterlabs_enterprise/webhook-service:v0.1.12
26+
image: quay.io/matterlabs_enterprise/webhook-service:v0.1.13
2727
platform: linux/amd64
2828
container_name: webhook-service
2929
init: true

docs/src/configuration.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,16 @@ If you want the service to listen on different internal ports:
7171

7272
---
7373

74+
### Payload Pruning (`[payload_pruning]`)
75+
Controls retention and pruning of delivery job payloads.
76+
77+
```toml
78+
[payload_pruning]
79+
interval_secs = 3600 # Run every hour
80+
retention_days = 7 # Keep payloads for 7 days
81+
batch_size = 5000 # Max rows pruned per batch
82+
```
83+
7484
## Other common settings
7585

7686
Use `config/config.prividium.docker.toml` to tune:

scripts/get_token.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,33 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
33

4+
# --- load .env (optional) ---------------------------------------------------
5+
# Loads variables from .env if present, without requiring the user to export them.
6+
# Honors any vars already set in the environment.
7+
dotenv_load() {
8+
local env_file="${ENV_FILE:-.env}"
9+
10+
# Try repo root + script dir if you want (pick one policy)
11+
if [[ -f "$env_file" ]]; then
12+
:
13+
elif [[ -f "$(dirname "$0")/../.env" ]]; then
14+
env_file="$(dirname "$0")/../.env"
15+
elif [[ -f "$(dirname "$0")/.env" ]]; then
16+
env_file="$(dirname "$0")/.env"
17+
else
18+
return 0
19+
fi
20+
21+
# shellcheck disable=SC1090
22+
set -a
23+
source "$env_file"
24+
set +a
25+
}
26+
27+
dotenv_load
28+
29+
# --- get_token.sh -----------------------------------------------------------
30+
431
# Utility: Get a tenant token via SIWE.
532
#
633
# DX principles:

0 commit comments

Comments
 (0)