Add newproject command and fix template bugs

- Add newproject, ssh, templates commands for full project scaffolding
- Add homelab SSH, Caddy, port, and proxy_host fields to Config
- Fix dotEnvExample: use container-internal port (3000/8000/8080) not host port
- Fix caddySnippet: use configurable proxy_host instead of localhost
- Fix dockerComposeTemplate: add build: path so image-less deploys work
- Commit gtea.exe binary
This commit is contained in:
2026-05-29 12:37:14 -04:00
parent b8c6e129e8
commit e88f33071e
6 changed files with 530 additions and 0 deletions

View File

@@ -17,6 +17,21 @@ type Config struct {
URL string `json:"url"`
Token string `json:"token"`
Username string `json:"username"`
// Homelab / beepc
SSHHost string `json:"ssh_host"`
SSHUser string `json:"ssh_user"`
ProjectsDir string `json:"projects_dir"`
HomelabDir string `json:"homelab_dir"`
ProxyHost string `json:"proxy_host"` // IP/hostname Caddy on VPS uses to reach beepc
// Caddy reverse proxy
CaddyConfDir string `json:"caddy_conf_dir"`
CaddyReloadCmd string `json:"caddy_reload_cmd"`
// Project defaults
Domain string `json:"domain"`
PortStart int `json:"port_range_start"`
}
var rootCmd = &cobra.Command{