Reverse Proxy Unauthorized 401 (Windows)


Good Day,
EDIT: Based on feedback changed this topic

I cannot connect with the Windows Bash (by git) command line tool to gogs it refused the connection and I recive the Reverse Proxy Unauthorized 401. The same happens if I use powershell. They are asking me for my username and password (and they are correct) but then I always recive:
`fatal: Authentication failed for ’ x
When I do this via linux or the GitHub Desktop tool (Windows) then everything is fine.

I have followed the instructions here User authentication via reverse proxy request header #165 but I had no success.

System data:

  • Gogs Version:
  • Go Go1.10.2
  • ‪Ubuntu 16.04.4 LTS‬ (I have changed the system this week)
  • MySql 5.7.22
  • SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.4


Hi, please provide information required in the post template.

Also, please provide your Gogs version, system, database.


Updated my post.


Are you/users able to login Gogs web interface with your reverse proxy setting?

Currently, unlike regular web interface interactions, the HTTP push/pull operations disregard reverse proxy setting. I think that’s the problem.