How to Remote Push to Reverse Proxied OneDev (Local Git Server) reddit / selfhosted ---------------------------------------------------------------------- MadMaximusJB · 2023-11-20 05:48 I am attempting to push to my remote repository from the command line to a web address that is using reverse proxy to display a self-hosted git server (OneDev), but when I run the command, I usually get a 403 or some other error. How might I fix this? [u/robinshen](https://www.reddit.com/u/robinshen/) EDIT: Still getting 403 error. I have edited the global git config file with my username and access token. ---------------------------------------------------------------------- ElevenNotes · 2023-11-20 06:19 You provide not enough information to remotely help you, except that you get HTTP 403, which means you try to access a protected resource you don’t have access to. Does everything else work normal with the OneDev system? Can you pull? Can you login? Can you see your repos? ---------------------------------------------------------------------- MadMaximusJB · 2023-11-20 07:13 Pull does not work either, it seems I am not able to access the remote repository at all. The error, more specifically, says, "fatal: unable to access 'https://\*\*\*.\*\*\*.\*\*\*/\*\*\*/': The requested URL returned error: 403" ---------------------------------------------------------------------- ElevenNotes · 2023-11-20 07:17 If nothing works and you are using a reverse proxy, I would check there. Does your reverse proxy report your backend OneDev as working? What reverse proxy are you using? Can you post the config on your reverse proxy for OneDev? ---------------------------------------------------------------------- onurguzel · 2023-11-20 07:32 There is a good chance that reverse proxy is not sending some of the headers to the upstream. You can try something like httpbin both with and without reverse proxy and see if there is any difference in the requests. ---------------------------------------------------------------------- MadMaximusJB · 2023-11-20 07:44 I use Cloudflare Tunnel, I'm not sure where to find a config file. ---------------------------------------------------------------------- MadMaximusJB · 2023-11-20 07:51 I am using the tunnel feature, but I will try to add a non-proxied A record and see if that fixes it. ---------------------------------------------------------------------- MadMaximusJB · 2023-11-21 02:07 (It didn't)