Reverse Proxy Unauthorized 401 (Windows)


#1

Good Day,
EDIT: Based on feedback changed this topic

Problem:
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.

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

System data:

  • Gogs Version: 0.11.53.0603
  • 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

#2

Hi, please provide information required in the post template.

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


#3

Updated my post.


#4

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.