Commit Graph
16 Commits
Author SHA1 Message Date
jbandClaude Opus 4.8 3edfaa4ab2 test: add unit tests for config generation and form values
Cover the deploy-critical pure logic:

- GenerateConfigTOML: round-trip decode of values + a guard asserting the
  config port is always containerAppPort (host port must not leak)
- GenerateWireguardConfig: MTU emitted/commented, PROTO default UDP
- WriteConfigFile / WriteWireguardConfigFile: numeric validation rejects
  bad input and does not write a file
- FormStep.Values(): text/password/select resolution and select default
  fallback

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 12:04:31 -03:00
jbandClaude Opus 4.8 d2717de47a refactor: clarify fixed container port with containerAppPort constant
The container always listens on 8080 internally while the user-provided
port is only the host-side mapping. Make this explicit without changing
behavior or the generated config:

- add a named containerAppPort constant and use it in both the docker -p
  mapping and the config.toml generation (was a bare 8080 literal in two
  places)
- document why config.toml hardcodes the port, so it isn't "fixed" back
  to the form value
- relabel the form field to "Porta (host)"

The generated config.toml is byte-identical (port = 8080).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 12:00:54 -03:00
jbandClaude Opus 4.8 6becd3462d refactor: unify image download into a single DownloadImageCmd
DownloadImageCmd and DownloadWireguardImageCmd were identical except for
the image URL. Collapse them into one DownloadImageCmd that takes the
image as a parameter, passing imageName/wireguardImageName at the call
sites.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 11:54:08 -03:00
jbandClaude Opus 4.8 3379ada59a fix: print docker output in network error and use networkName constant
The network creation error format string had a trailing "output" with no
verb, silently dropping the captured docker output. Add the missing %s.
Also replace the hardcoded "app-dono_app" literal with the networkName
constant in RunAppClienteContainer.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 11:54:02 -03:00
jbandClaude Opus 4.8 25137eb5da docs: add Portuguese docs and English CLAUDE.md
Add README.md, docs/ (fluxo, configuracao, arquitetura) in PT-BR and a
CLAUDE.md technical reference in English describing the installer flow,
generated files, containers and architecture.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 11:53:56 -03:00
teste.inaba 009c4bc8d1 fix: adicionar opção de segurança para compatibilidade
deu pau pra rodar no vdm
2026-05-29 14:51:44 -03:00
teste.inaba dedbae0c07 fix: criar container com usuário, logs json e criar network 2026-05-20 16:09:58 -03:00
teste.inaba 0fc3c65259 fix: porta do container deve ser hardcodada, ops 2026-04-20 17:45:43 -03:00
teste.inaba 219dcc78bd feat: trocar configurações de certificado
Agora a emissão e renovação de certificado é automática.
2026-04-09 17:31:10 -03:00
teste.inaba b84e0f6def ci: remove flag de amd64 v3 do build 2026-04-09 17:05:29 -03:00
teste.inaba 974e342b39 ci: add makefile 2026-04-09 15:40:36 -03:00
jb 0753745115 feat: changed port binding 2026-03-12 10:23:22 -03:00
jb c622abf194 feat: wireguard / vproxy configuration 2026-03-11 16:00:26 -03:00
jb 085cda7251 feat: implemented all features besides wireguard 2026-03-11 11:01:35 -03:00
jb 6870144f39 feat: main flow created 2026-03-09 11:37:43 -03:00
jb 315807bbab batman 2026-03-05 08:46:04 -03:00