Lucee Reverse Proxy Manager CLI
Automatically manages nginx reverse proxy for multiple Lucee dev instances created using lucee-nix.
Each Lucee project can optionally include a lucee-instance/conf/lucee-manager.json file to customize its configuration. This file is read during project scanning and the settings are stored in the registry, so if any changes are made you will have to scan the project again. Note: Running projects are automatically stopped before registry updates to ensure consistency.
| Field | Type | Description | Example | Default |
|---|---|---|---|---|
project |
String | Project name used in registry and commands | "my-cms-project" |
Directory name |
domain |
String | Custom domain for nginx reverse proxy | "myapp.local" |
"<project>.local" |
nginx.templateFile |
String | Alternative nested field for nginx template path | "/absolute/path/to/template.conf" |
Uses default template |
Basic Configuration:
{
"project": "my-cms-project",
"domain": "mycms.devlocal.example.com"
}With Custom Template:
{
"project": "my-cms-project",
"domain": "mycms.devlocal.example.com",
"nginx": {
"templateFile": "/nix/store/path/to/template.conf"
}
}Custom nginx templates support placeholder substitution:
SERVERNAME→ Replaced with the project's domainLUCEE_PORT→ Replaced with the assigned port number
lucee-manager <command> [options]
| Command | Description |
|---|---|
scan [directory] |
Scan directory for Lucee projects (default: current dir) |
list |
List all discovered projects and their status |
| Command | Description |
|---|---|
assign-port <project> |
Assign an available port to a project |
track <project> <status> |
Update project status (running|stopped) |
| Command | Description |
|---|---|
start <project> |
Complete startup: assign port, update config, start nginx, run project |
stop <project> |
Stop running project and update status |
| Command | Description |
|---|---|
nginx generate |
Generate nginx configuration for all projects |
nginx start |
Start nginx reverse proxy on port 8080 |
nginx stop |
Stop nginx reverse proxy |
nginx reload |
Reload nginx configuration |
lucee-manager scan ~/codelucee-manager start my-cms-projectlucee-manager stop my-cms-project
lucee-manager scan ~/codelucee-manager assign-port my-cms-projectlucee-manager nginx generatelucee-manager nginx start
you shouldnt need to touch any of these but who knows
- Logs:
~/.lucee-manager/logs - Nginx:
~/.lucee-manager/nginx - Registry:
~/.lucee-manager/registry.json