You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-2Lines changed: 11 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ Example configuration files are available in:
62
62
Validate configuration with:
63
63
64
64
```bash
65
-
CONFIG_DIR=./examples go run ./cmd/pulse-validate
65
+
API_HTTP_AUTH_TOKEN=dev-token API_HTTP_CUSTOM_HEADER=dev-value CONFIG_DIR=./examples go run ./cmd/pulse-validate
66
66
```
67
67
68
68
Before starting the app, apply migrations:
@@ -74,7 +74,7 @@ go run ./cmd/pulse-migrate up
74
74
Run with:
75
75
76
76
```bash
77
-
CONFIG_DIR=./examples go run ./cmd/pulse
77
+
API_HTTP_AUTH_TOKEN=dev-token API_HTTP_CUSTOM_HEADER=dev-value CONFIG_DIR=./examples go run ./cmd/pulse
78
78
```
79
79
80
80
Run API with:
@@ -83,6 +83,15 @@ Run API with:
83
83
API_LISTEN_ADDR=:8080 INTERNAL_API_ENABLED=true CONFIG_DIR=./examples go run ./cmd/pulse-api
84
84
```
85
85
86
+
Check `spec` values may reference environment variables with `${VAR_NAME}` syntax:
87
+
88
+
```yaml
89
+
headers:
90
+
Authorization: "Bearer ${API_HTTP_AUTH_TOKEN}"
91
+
```
92
+
93
+
Referenced variables must be present when the configuration is loaded. Values are resolved at check execution time and are not written back into the loaded config snapshot.
94
+
86
95
The API process has separate internal and public route groups.
87
96
Both are disabled by default and must be enabled explicitly:
0 commit comments