Skip to content

Add SSH_DISPLAY_USER configuration #15327

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

SohnyBohny
Copy link
Contributor

This adds a SSH_DISPLAY_USER configuration parameter in order to change what's displayed in clone URL.

You might wonder about the use case:
I'm running gitea in a docker container and have configured SSH Container Passthrough. However the host ssh user is "gitea" and not "git" (as used in the container). Everything works fine but I was unable to customize the ssh clone URL shown in the web ui.

image

Copy link
Member

@techknowlogick techknowlogick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is currently already achievable by modifying the runuser of the docker container ($USER env var)

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Apr 7, 2021
@SohnyBohny
Copy link
Contributor Author

Great, thank you. Then my changes are obsolete.

@SohnyBohny SohnyBohny closed this Apr 8, 2021
@go-gitea go-gitea locked and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants