feat(forgejo): Use configurable SSH port for repository URLs
This commit is contained in:
parent
84b70620b5
commit
a78ae843a7
1 changed files with 1 additions and 2 deletions
|
|
@ -44,8 +44,7 @@ provider_ssh_url() {
|
|||
local host
|
||||
# Extract hostname by removing protocol and trailing slashes
|
||||
host=$(echo "${FORGEJO_URL}" | sed -e 's|^[^/]*//||' -e 's|/*$||')
|
||||
# Using port 222 as default for many homelab Forgejo/Gitea setups
|
||||
echo "ssh://git@${host}:222/${FORGEJO_USER}/${1}.git"
|
||||
echo "ssh://git@${host}:${FORGEJO_SSH_PORT:-222}/${FORGEJO_USER}/${1}.git"
|
||||
}
|
||||
|
||||
provider_web_url() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue