docker login always returns success

Syed Imran smart.imran003 at gmail.com
Wed Oct 11 08:13:33 UTC 2017


Hi,

I have artifactory installed with docker & nginx integrated.

What ever credentials i give, always returns "Login succeeded" Below is the
log.

Can this be something related to firewall block. Because application side
log always shows up saying Login Denied.

test at finland-artifactory:~$ docker login XXX.XXX.XXX.XXX
Username (asdf): asdfasdf
Password:
Login Succeeded

test at finland-artifactory:~$ docker login XXX.XXX.XXX.XXX
Username (asdfasdf): thttht
Password:
Login Succeeded

Below is the nginx configuration.

ssl_certificate      /etc/nginx/ssl/demo.pem;
ssl_certificate_key  /etc/nginx/ssl/demo.key;
ssl_session_cache shared:SSL:1m;
ssl_prefer_server_ciphers   on;
## server configuration
server {
    listen 443 ssl;
    listen 80 ;

    server_name XXX.XXX.XXX.XXX;
    if ($http_x_forwarded_proto = '') {
        set $http_x_forwarded_proto  $scheme;
    }
    ## Application specific logs
    ## access_log /var/log/nginx/artifactory.net.nokia.com-access.log
timing;
    ## error_log /var/log/nginx/artifactory.net.nokia.com-error.log;
    rewrite ^/$ /artifactory/webapp/ redirect;
    rewrite ^/artifactory/?(/webapp)?$ /artifactory/webapp/ redirect;
    rewrite ^/(v1|v2)/(.*)
/artifactory/api/docker/fnms_docker_virtual/$1/$2;
    chunked_transfer_encoding on;
    client_max_body_size 0;
    location /artifactory/ {
    proxy_read_timeout  900;
    proxy_pass_header   Server;
    proxy_cookie_path   ~*^/.* /;
    proxy_pass          http://XXX.XXX.XXX.XXX:8081/artifactory/;
    proxy_set_header    X-Artifactory-Override-Base-Url
$http_x_forwarded_proto://$host:$server_port/artifactory;
    proxy_set_header    X-Forwarded-Port  $server_port;
    proxy_set_header    X-Forwarded-Proto $http_x_forwarded_proto;
    proxy_set_header    Host              $http_host;
    proxy_set_header    X-Forwarded-For   $proxy_add_x_forwarded_for;
    }
}

Thanks,
Syed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20171011/865b3155/attachment.html>


More information about the nginx mailing list