From 1380c14344de03caf3e30d5b4f07ccf3fbb49158 Mon Sep 17 00:00:00 2001 From: n3-rd Date: Tue, 17 Feb 2026 12:24:26 +0100 Subject: [PATCH] feat: Add DNS configuration management to API and dashboard settings - Implemented GET and PATCH endpoints for DNS configuration in the API. - Added a settings page in the dashboard for managing DNS domain. - Updated install script to support non-interactive mode when piped. - Enhanced Caddy configuration to handle domain and port fallback for local access. --- README.md | 31 +++- apps/dashboard/src/routes/+page.svelte | 21 ++- .../src/routes/settings/+page.svelte | 165 ++++++++++++++++++ core/api/server.js | 58 ++++++ core/cli/reload-proxy.sh | 46 ++++- install.sh | 6 + 6 files changed, 323 insertions(+), 4 deletions(-) create mode 100644 apps/dashboard/src/routes/settings/+page.svelte diff --git a/README.md b/README.md index 510992c..2032271 100644 --- a/README.md +++ b/README.md @@ -32,13 +32,42 @@ This project follows a monorepo-style structure: See the [Development Guide](apps/docs/DEVELOPMENT.md) for more details on project structure and testing. +## Prerequisites + +- **Docker** and **Docker Compose** +- **curl** (used for health checks in the container) + +Install curl if needed: + +| Platform | Command | +|----------|---------| +| Ubuntu/Debian | `sudo apt-get install -y curl` | +| Fedora/RHEL | `sudo dnf install -y curl` | +| macOS | `brew install curl` | +| Alpine | `apk add curl` | + ## Quick Start +**One-liner (curl):** When piped, the script runs non-interactively and uses defaults. +```bash +curl -fsSL https://raw.githubusercontent.com/n3-rd/multi-pb/main/install.sh | bash +``` +With options (port, data dir, domain): +```bash +curl -fsSL https://raw.githubusercontent.com/n3-rd/multi-pb/main/install.sh | bash -s -- --non-interactive --port 25983 --data-dir ./multipb-data +``` + +Or interactive (will prompt for config): +```bash +curl -fsSL https://raw.githubusercontent.com/n3-rd/multi-pb/main/install.sh | bash -s -- +``` + +**From clone:** ```bash git clone https://github.com/n3-rd/multi-pb.git cd multi-pb # Recommended: Use Bun for speed -bun install +bun install ./install.sh ``` diff --git a/apps/dashboard/src/routes/+page.svelte b/apps/dashboard/src/routes/+page.svelte index 94471bd..0b6de15 100644 --- a/apps/dashboard/src/routes/+page.svelte +++ b/apps/dashboard/src/routes/+page.svelte @@ -248,7 +248,8 @@