Update README with unified launcher workflow and new menu options
This commit is contained in:
1 parent
ac43d14b75
commit
3b95a9f07c
1 file changed
+45
-29
@@ -21,11 +21,11 @@ If you're testing this project, grab builds from nightly for the latest features
|
|||||||
## Quick Start
|
## Quick Start
|
||||||
|
|
||||||
### Windows
|
### Windows
|
||||||
1. Double-click `setup.bat`
|
1. Double-click `launcher.ps1` (or run `.\launcher.ps1` in PowerShell)
|
||||||
2. Follow the prompts
|
2. Select option **2** to run Setup on first use
|
||||||
3. Double-click `start.bat` to launch
|
3. Select option **1** to Start Dashboard
|
||||||
|
|
||||||
> **Tip**: Ensure your SSH key is in `internal-scripts/ssh/sshKey` before running setup.
|
> **Tip**: The launcher automatically finds your SSH key from the Dune Awakening server installation at `%LOCALAPPDATA%\DuneAwakeningServer\sshKey`.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
@@ -63,36 +63,52 @@ This project is **Source Available** under the [Dune Dashboard Source License (D
|
|||||||
|
|
||||||
### Windows
|
### Windows
|
||||||
|
|
||||||
1. **Run Setup**
|
1. **Run the Launcher**
|
||||||
```powershell
|
```powershell
|
||||||
.\setup.ps1
|
.\launcher.ps1
|
||||||
```
|
```
|
||||||
This will install dependencies, configure your SSH key, and generate `settings.yaml`.
|
|
||||||
|
|
||||||
During setup you'll be prompted for:
|
2. **Choose an option from the menu:**
|
||||||
- **VM External IP** — the IP you SSH into (e.g., `65.21.198.100`)
|
- **[1] Start Dashboard** — Launch the dashboard web interface
|
||||||
- **Host External IP** — the public IP for SSL certificate SANs (e.g., `65.21.198.107`)
|
- **[2] Run Setup** — Configure the dashboard for the first time (or reconfigure)
|
||||||
- **Let's Encrypt** — optionally set up a publicly trusted SSL cert with auto-renewal via certbot
|
- **[3] Run Diagnostics** — Check your system for common issues
|
||||||
- **Firewall rules** — only prompted if no `DuneDashboard` rule exists yet
|
- **[4] Install CA Certificate** — Install the local CA into Windows Trusted Root store (removes browser SSL warnings)
|
||||||
|
- **[5] Clean & Reinstall CA Certificate** — Remove old CA certificates and install a fresh one
|
||||||
|
- **[Q] Quit** — Exit the launcher
|
||||||
|
|
||||||
2. **Start Dashboard**
|
3. **First-time Setup** (option 2)
|
||||||
```powershell
|
|
||||||
.\start.ps1
|
The setup script will:
|
||||||
```
|
- Install Python dependencies
|
||||||
This starts the SSH tunnel, database port-forward, and launches the dashboard.
|
- Find your SSH key (automatically detects the Dune Awakening server key)
|
||||||
|
- Auto-detect your VM IP from Hyper-V or SSH history
|
||||||
|
- Generate SSL certificates (local CA or Let's Encrypt)
|
||||||
|
- Configure firewall rules and security hardening
|
||||||
|
|
||||||
|
During setup you'll be prompted for:
|
||||||
|
- **VM External IP** — the IP you SSH into (e.g., `65.21.198.100`)
|
||||||
|
- **Host External IP** — the public IP for SSL certificate SANs (e.g., `65.21.198.107`)
|
||||||
|
- **Let's Encrypt** — optionally set up a publicly trusted SSL cert with auto-renewal via certbot
|
||||||
|
- **Firewall rules** — only prompted if no `DuneDashboard` rule exists yet
|
||||||
|
|
||||||
|
> **Note**: Setup will retry SSH up to 12 times (60 seconds) to accommodate fresh VM boot times. If SSH isn't ready yet, you can still continue and enter your Kubernetes namespace manually.
|
||||||
|
|
||||||
|
4. **Start Dashboard** (option 1)
|
||||||
|
|
||||||
|
The launcher will:
|
||||||
|
- Establish an SSH tunnel to your game server
|
||||||
|
- Set up database and Director port-forwards via kubectl
|
||||||
|
- Scale up the BGD deployment if needed
|
||||||
|
- Launch the dashboard web interface
|
||||||
|
|
||||||
### Linux / macOS
|
### Linux / macOS
|
||||||
|
|
||||||
1. **Run Setup**
|
1. **Start Dashboard**
|
||||||
```bash
|
```bash
|
||||||
chmod +x setup.sh start.sh
|
chmod +x start.sh
|
||||||
./setup.sh
|
./start.sh
|
||||||
```
|
```
|
||||||
|
The launcher will prompt you to run setup if `settings.yaml` is missing.
|
||||||
2. **Start Dashboard**
|
|
||||||
```bash
|
|
||||||
./start.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user