Enhance wizard CLI with dynamic port configuration for gRPC, CDN, and Auth services

This commit is contained in:
Ilya Groshev
2026-04-22 21:14:27 +03:00
parent b52b846324
commit 056537998a
2 changed files with 143 additions and 21 deletions
+16
View File
@@ -26,6 +26,22 @@ go run ./cmd/wizard
Your choices are saved so next time you just press Enter to relaunch with the same settings.
#### Custom Ports
By default the wizard uses ports 8003 (gRPC), 8080 (CDN), and 3000 (auth). Override any of them with flags:
```bash
go run ./cmd/wizard --grpc-port 9003 --cdn-port 9080
```
| Flag | Default | Description |
| ------------- | ------- | ---------------- |
| `--grpc-port` | `8003` | gRPC server port |
| `--cdn-port` | `8080` | CDN server port |
| `--auth-port` | `3000` | Auth server port |
Custom ports are saved to `.wizard.json` alongside your other settings. On the next run the saved ports are reused automatically — no need to pass the flags again. If you later pass different port flags, the wizard warns you that the ports changed and asks for confirmation before continuing.
### Regenerate protobuf stubs
```bash