feat: trocar configurações de certificado

Agora a emissão e renovação de certificado é automática.
This commit is contained in:
tkinaba
2026-04-09 17:31:10 -03:00
parent b84e0f6def
commit 219dcc78bd
6 changed files with 54 additions and 57 deletions
+11 -2
View File
@@ -77,6 +77,15 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
case StepRunWireguard:
return m.updateRunWireguardDocker(msg)
case StepAppConfig:
done, cmd := m.appForm.Update(msg)
if done {
m.configValues.Application = m.appForm.Values()
m.currentStep = StepServerConfig
}
return m, cmd
case StepServerConfig:
done, cmd := m.serverForm.Update(msg)
@@ -192,7 +201,7 @@ func (m Model) updateIPQuestion(msg tea.Msg) (tea.Model, tea.Cmd) {
case "enter":
// Yes
if m.cursor == 0 {
m.currentStep = StepServerConfig
m.currentStep = StepAppConfig
return m, nil
}
@@ -262,7 +271,7 @@ func (m Model) updateRunWireguardDocker(msg tea.Msg) (tea.Model, tea.Cmd) {
if m.finishedDockerRun && m.dockerRunError != nil {
return m, tea.Quit
} else if m.finishedDockerRun && m.dockerRunError == nil {
m.currentStep = StepServerConfig
m.currentStep = StepAppConfig
}
}