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

Dissimilar URLs #19340

Closed
cschuber opened this issue Apr 6, 2022 · 2 comments
Closed

Dissimilar URLs #19340

cschuber opened this issue Apr 6, 2022 · 2 comments

Comments

@cschuber
Copy link

cschuber commented Apr 6, 2022

When tunneling gitea:3000 through SSH port forwarding, some URLs will contain the ROOT_URL. For example, to "bypass" a firewall I ssh to the gitea server itself (ssh port is open but all other ports are blocked). I add the following to my .ssh/config:

LocalForward 3000 127.0.0.1:3000

This works for most links presented by gitea but some, such as Issues and Pull Requests, the link contains the ROOT_URL as its base. This results in the browser hanging until timeout, after which I replace the FQDN with localhost, press enter, and continue.

As to asking the firewall group to open port 3000, the answer was no.

Can this be addressed in a future version of gitea?

I did notice this at home when I changed ROOT_URL to a FQDN. Using the short name (as permitted by search in resolv.conf) also exhibited this same problem.

Would you recommend using gitea behind a nginx reverse proxy instead?

@wxiaoguang
Copy link
Contributor

@wxiaoguang
Copy link
Contributor

@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants