Skip to content
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

Enable ssh access on gitea #57

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

joaodubas
Copy link

@joaodubas joaodubas commented Feb 15, 2024

Configure gitea to be accessed by ssh. This is done by setting the variables:

Besides that, it's necessary to map container port 222 to host port 22.

With these changes, one can clone a repository using ssh://git@<hostname>:222/<username>/<repository>.git.

@dnlrsr
Copy link

dnlrsr commented May 9, 2024

For security and maintenance reasons the container should not map any ports to the host when traefik is in play. The mappning can be done inside Traefik or change the env vars to a propper port and Traefik can discover it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants