Ability to change ssh command script path in .ssh/authorized_keys
#15595
Labels
type/proposal
The new feature has not been accepted yet but needs to be discussed first.
v1.14.1
2.26.3
Linux pi 5.10.17-v7l+ #1403 SMP Mon Feb 22 11:33:35 GMT 2021 armv7l GNU/Linux
[x]
):Description
I'm running a Gitea instance inside a Docker container. While the SSH connection works in general, the passthrough as described in the docs does not work, because the file
/app/gitea/gitea
does not exist on the host. As I don't want to create that path on the host, I'd like to specify an alternative path to the script with the content described in the docs, e.g./home/git/handle-gitea-ssh.sh
.A new environment variable would probably be suited for this, for example:
The changes in the code would probably have to be made here:
gitea/models/ssh_key.go
Lines 89 to 92 in e7fc078
The result should look like this:
I'd probably open a PR by myself, but I don't know any Go 😄
The text was updated successfully, but these errors were encountered: