Fix #215: external SSH port config #222
No reviewers
Labels
No labels
actions
bug
cli
duplicate
enhancement
fork
forum
git storage
help wanted
insights
invalid
issues
moderation
oidc
ownership transfer
packages
pr/merge protection rules
projects
pull requests
question
releases
sponsorships
tags
webhooks
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
crueber/walhub!222
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/issue-215"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements Forgejo issue #215: the external SSH port is now configurable in setup while the server keeps listening internally.
What: new
server.ssh.external_port(0 = the listen port, so unset behavior is identical). Summary, overview, and placeholder-create responses advertisessh_clone_url(public hostname at the advertised port,:22omitted, absent while SSH is disabled); the clone menu + empty-repo guide show it verbatim; setup UI field (visible, with working example12222accepted by/api/v1/setup/test).Verified: Go gates on touched packages (config/api/server, -race, cover >= 95%), full
node --test(431 pass), real-browser CDP drive: SSH tab showsssh://git@host:12222/…with zero console errors; setup page lists the new key. Docs updated: 17_ssh.md (§3 + decision 17.5), 11_config_cli.md, 07_api.md, 12_web_ui.md.