docker login always returns success

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


I have artifactory installed with docker & nginx integrated.

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

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
Login Succeeded

test at finland-artifactory:~$ docker login XXX.XXX.XXX.XXX
Username (asdfasdf): thttht
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/
    ## error_log /var/log/nginx/;
    rewrite ^/$ /artifactory/webapp/ redirect;
    rewrite ^/artifactory/?(/webapp)?$ /artifactory/webapp/ redirect;
    rewrite ^/(v1|v2)/(.*)
    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
    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;

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list