title: Status 405 - docker - artifactory
body: <p>I get the following error when pushing images to docker artifactory:<br/>
  <code>v1</code>:</p>
  
  <pre><code>Error: Status 405 trying to push repository abc-docker-local: "{\n  \"errors\" : [ {\n    \"status\" : 405,\n    \"message\" : \"Method Not Allowed\"\n  } ]\n}"
  </code></pre>
  
  <p><strong>I use nginx. My config file looks like:</strong></p>
  
  <pre><code>server_name localserver;
  rewrite ^  remoteserver/artifactory/api/docker/abc-docker-local/v1 redirect;
  if ($http_x_forwarded_proto = '') {
      set $http_x_forwarded_proto  $scheme;
  }
  
  location / {
          proxy_read_timeout  900;
          proxy_pass_header   Server;
          proxy_cookie_path ~*^/.* /;
          proxy_pass          http://remoteserver:9081/artifactory/api/docker/abc-docker-local/v1;
          proxy_set_header   X-Artifactory-Override-Base-Url $http_x_forwarded_proto://$host;
          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;
  }
  </code></pre>
  
  <p>In Artifactory I set the repo as <code>v1</code>. I also tested with <code>v2</code> but no end points are returned. The exact error for v2 is:<br></p>
  
  <pre><code>Index response didn't contain any endpoints
  </code></pre>
  
  <p>thanks in advance</p>