Share
## https://sploitus.com/exploit?id=CDA3D68F-F8DE-59B5-81F9-86D3564A064E
# StackBill Deployer

Web-based deployment portal for StackBill. Provides a web interface to deploy StackBill to remote servers via SSH.

## Features

- Web UI for entering server details and deployment options
- SSH-based remote deployment
- Real-time log streaming via WebSocket
- CloudStack Simulator configuration
- SSL and monitoring options

## Requirements

- Go 1.21+
- Target server: Ubuntu 22.04, 8+ vCPU, 16GB+ RAM (32GB+ with CloudStack)

## Quick Start

```bash
# Install dependencies
go mod tidy

# Run the server
go run main.go

# Access at http://localhost:8080
```

## Configuration

| Environment Variable | Default | Description |
|---------------------|---------|-------------|
| `SB_DEPLOYER_PORT` | `8080` | Server port |
| `SB_SCRIPT_PATH` | `scripts/install-stackbill-poc.sh` | Path to install script |

## Docker

```bash
docker build -t stackbill-deployer .
docker run -p 8080:8080 stackbill-deployer
```

## Project Structure

```
stackbill-deployer/
โ”œโ”€โ”€ main.go                  # Entry point
โ”œโ”€โ”€ cmd/server/              # Server startup
โ”œโ”€โ”€ internal/
โ”‚   โ”œโ”€โ”€ config/              # Configuration
โ”‚   โ”œโ”€โ”€ deployer/            # SSH deployment logic
โ”‚   โ”œโ”€โ”€ handlers/            # HTTP & WebSocket handlers
โ”‚   โ””โ”€โ”€ models/              # Data models
โ”œโ”€โ”€ web/
โ”‚   โ”œโ”€โ”€ static/css/          # Styles
โ”‚   โ”œโ”€โ”€ static/js/           # Frontend logic
โ”‚   โ””โ”€โ”€ templates/           # HTML templates
โ”œโ”€โ”€ scripts/                 # Install scripts
โ””โ”€โ”€ Dockerfile
```