authentication - Gitlab clone over http fails to authenticate from external network -
i have gitlab 5.2 + nginx installed on local machine in university. clone on http works machines within internal network, trying clone machine on external network results in "fatal: authentication failed" message, though exact same credentials supplied. (i use same credentials ones use log in gitlab via web interface)
the gitlab web interface accessible external networks. clone on http fails (clone on ssh not possible because port 22 blocked)
here lines relevant configuration files:
from config/gitlab.yml
host: mydomain port: 80 https: false
here relevant lines ngnix config file
server { listen *:80 default_server; # in cases *:80 idea server_name mydomain; # e.g., server_name source.example.com; root /home/git/gitlab/public; # individual nginx logs gitlab vhost access_log /var/log/nginx/gitlab_access.log; error_log /var/log/nginx/gitlab_error.log; location / { # serve static files defined root folder;. # @gitlab named location upstream fallback, see below try_files $uri $uri/index.html $uri.html @gitlab; } # if file, not found in root folder requested, # proxy pass request 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; } }
note: have added line /etc/hosts: 127.0.0.1 mydomain
doesn't help. (based on https://github.com/gitlabhq/gitlabhq/issues/3483#issuecomment-15783597)
any ideas on issue might be/how might debug this?
i believe fixed in 5.3, try updating. see:
Comments
Post a Comment