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:
15
cmd/root.go
15
cmd/root.go
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user