diff options
Diffstat (limited to 'docs/how-to')
| -rw-r--r-- | docs/how-to/deploy.md | 2 | ||||
| -rw-r--r-- | docs/how-to/prometheus-setup.md | 6 | ||||
| -rw-r--r-- | docs/how-to/test-compliance.md | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/docs/how-to/deploy.md b/docs/how-to/deploy.md index 6fe8776..157e5f8 100644 --- a/docs/how-to/deploy.md +++ b/docs/how-to/deploy.md | |||
| @@ -229,7 +229,7 @@ git ls-remote https://ngit.example.com/<npub>/<repo>.git | |||
| 229 | 229 | ||
| 230 | ### Network | 230 | ### Network |
| 231 | - `bindAddress` - IP to bind to (default: "127.0.0.1") | 231 | - `bindAddress` - IP to bind to (default: "127.0.0.1") |
| 232 | - `port` - Port to listen on (default: 8080) | 232 | - `port` - Port to listen on (default: 7334) |
| 233 | 233 | ||
| 234 | ### Storage | 234 | ### Storage |
| 235 | - `dataDir` - Base directory for data (default: /var/lib/ngit-grasp-{name}) | 235 | - `dataDir` - Base directory for data (default: /var/lib/ngit-grasp-{name}) |
diff --git a/docs/how-to/prometheus-setup.md b/docs/how-to/prometheus-setup.md index 741255b..53ec480 100644 --- a/docs/how-to/prometheus-setup.md +++ b/docs/how-to/prometheus-setup.md | |||
| @@ -13,7 +13,7 @@ This guide shows how to configure Prometheus and Grafana to monitor ngit-grasp. | |||
| 13 | First, verify that ngit-grasp is exposing metrics: | 13 | First, verify that ngit-grasp is exposing metrics: |
| 14 | 14 | ||
| 15 | ```bash | 15 | ```bash |
| 16 | curl http://localhost:8080/metrics | 16 | curl http://localhost:7334/metrics |
| 17 | ``` | 17 | ``` |
| 18 | 18 | ||
| 19 | You should see Prometheus-formatted metrics like: | 19 | You should see Prometheus-formatted metrics like: |
| @@ -41,7 +41,7 @@ services.prometheus = { | |||
| 41 | { | 41 | { |
| 42 | job_name = "ngit-grasp"; | 42 | job_name = "ngit-grasp"; |
| 43 | static_configs = [{ | 43 | static_configs = [{ |
| 44 | targets = [ "localhost:8080" ]; # ngit-grasp bind address | 44 | targets = [ "localhost:7334" ]; # ngit-grasp bind address |
| 45 | }]; | 45 | }]; |
| 46 | scrape_interval = "15s"; | 46 | scrape_interval = "15s"; |
| 47 | metrics_path = "/metrics"; | 47 | metrics_path = "/metrics"; |
| @@ -105,7 +105,7 @@ global: | |||
| 105 | scrape_configs: | 105 | scrape_configs: |
| 106 | - job_name: 'ngit-grasp' | 106 | - job_name: 'ngit-grasp' |
| 107 | static_configs: | 107 | static_configs: |
| 108 | - targets: ['host.docker.internal:8080'] # or your ngit-grasp host | 108 | - targets: ['host.docker.internal:7334'] # or your ngit-grasp host |
| 109 | metrics_path: /metrics | 109 | metrics_path: /metrics |
| 110 | ``` | 110 | ``` |
| 111 | 111 | ||
diff --git a/docs/how-to/test-compliance.md b/docs/how-to/test-compliance.md index 370fb9a..8aa7ab1 100644 --- a/docs/how-to/test-compliance.md +++ b/docs/how-to/test-compliance.md | |||
| @@ -184,7 +184,7 @@ nix develop -c cargo run | |||
| 184 | 184 | ||
| 185 | # In another terminal, run audit tool | 185 | # In another terminal, run audit tool |
| 186 | cd grasp-audit | 186 | cd grasp-audit |
| 187 | nix develop -c cargo run -- --url ws://127.0.0.1:8080 | 187 | nix develop -c cargo run -- --url ws://127.0.0.1:7334 |
| 188 | ``` | 188 | ``` |
| 189 | 189 | ||
| 190 | ### For CI/CD | 190 | ### For CI/CD |
| @@ -424,7 +424,7 @@ nix develop -c cargo test --test nip01_compliance --test nip34_announcements | |||
| 424 | **For deep compliance check:** | 424 | **For deep compliance check:** |
| 425 | ```bash | 425 | ```bash |
| 426 | cd grasp-audit | 426 | cd grasp-audit |
| 427 | nix develop -c cargo run -- --url ws://127.0.0.1:8080 | 427 | nix develop -c cargo run -- --url ws://127.0.0.1:7334 |
| 428 | ``` | 428 | ``` |
| 429 | 429 | ||
| 430 | **Key points:** | 430 | **Key points:** |