Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/http/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
http上的Gitlab clone无法从外部网络进行身份验证_Http_Authentication_Nginx_Clone_Gitlab - Fatal编程技术网

http上的Gitlab clone无法从外部网络进行身份验证

http上的Gitlab clone无法从外部网络进行身份验证,http,authentication,nginx,clone,gitlab,Http,Authentication,Nginx,Clone,Gitlab,我在大学的本地机器上安装了Gitlab 5.2+Nginx。http克隆适用于内部网络内的计算机,但尝试从外部网络上的计算机克隆会导致“致命:身份验证失败”消息,即使提供了完全相同的凭据。(我使用的凭据与通过web界面登录Gitlab时使用的凭据相同) Gitlab web界面可以从外部网络访问。只有通过http的克隆失败(由于端口22被阻止,无法通过ssh进行克隆) 以下是相关配置文件中的一些行: 从config/gitlab.yml host: mydomain port: 80 https

我在大学的本地机器上安装了Gitlab 5.2+Nginx。http克隆适用于内部网络内的计算机,但尝试从外部网络上的计算机克隆会导致“致命:身份验证失败”消息,即使提供了完全相同的凭据。(我使用的凭据与通过web界面登录Gitlab时使用的凭据相同)

Gitlab web界面可以从外部网络访问。只有通过http的克隆失败(由于端口22被阻止,无法通过ssh进行克隆)

以下是相关配置文件中的一些行:

从config/gitlab.yml

host: mydomain
port: 80
https: false
以下是ngnix配置文件中的相关行

server {
  listen *:80 default_server;         # In most cases *:80 is a good idea
  server_name mydomain;     # e.g., server_name source.example.com;
  root /home/git/gitlab/public;

  # individual nginx logs for this gitlab vhost
  access_log  /var/log/nginx/gitlab_access.log;
  error_log   /var/log/nginx/gitlab_error.log;

  location / {
    # serve static files from defined root folder;.
    # @gitlab is a named location for the upstream fallback, see below
    try_files $uri $uri/index.html $uri.html @gitlab;
  }

  # if a file, which is not found in the root folder is requested,
  # then the proxy pass the request to the upsteam (gitlab unicorn)
  location @gitlab {
    proxy_read_timeout 2000; # https://github.com/gitlabhq/gitlabhq/issues/694
    proxy_connect_timeout 2000; # https://github.com/gitlabhq/gitlabhq/issues/694
    proxy_redirect     off;

    proxy_set_header   X-Forwarded-Proto $scheme;
    proxy_set_header   Host              $http_host;
    proxy_set_header   X-Real-IP         $remote_addr;

    proxy_pass http://gitlab;
  }
}
注意:我已经在/etc/hosts:
127.0.0.1 mydomain
中添加了这一行,但它并没有真正的帮助。(基于)


有没有关于这个问题的想法/我如何调试这个问题?

我相信这在5.3中是固定的,所以请尝试更新。见:


只是澄清一下-我不使用LDAP身份验证。奇怪的是,git over http实际上是从内部网络运行的。只有当我尝试从外部网络执行此操作时,它才会失败。