# Docker repo setup with already established Reverse Proxy with nginx

**URL:** https://community.sonatype.com/t/docker-repo-setup-with-already-established-reverse-proxy-with-nginx/3681
**Category:** Sonatype Nexus Repository
**Tags:** help
**Created:** [March 17, 2020, 12:35pm UTC](https://community.sonatype.com/t/docker-repo-setup-with-already-established-reverse-proxy-with-nginx/3681 "2020-03-17T12:35:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jose.alvarez](https://avatars.discourse-cdn.com/v4/letter/j/c89c15/32.png) [@jose.alvarez](https://community.sonatype.com/u/jose.alvarez)
#### Post date: [March 17, 2020, 12:35pm UTC](https://community.sonatype.com/t/docker-repo-setup-with-already-established-reverse-proxy-with-nginx/3681/1 "2020-03-17T12:35:00Z")

</div>

I have a new nexus repository set up however im having issues connecting to the docker repo i created. The nginx reverse proxy is already set up with SSL so i just need to know what to configure differently. I already tried the following however it didnt work  
here is my connector settings

 ![image](https://canada1.discourse-cdn.com/flex047/uploads/communitysonatype/original/2X/b/be5eb0ab23ab373b59359ee830bba9f55255506f.png)

and here is my nginx configs from path /etc/nginx/sites-available/default

```
        location /v2/ {

            proxy_pass http://10.0.25.65/;

            proxy_set_header Host $http_host; # required for docker client's sake
            proxy_set_header X-Real-IP $remote_addr; # pass on real client's IP
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto $scheme;
            proxy_read_timeout 900;

```

---

<div class="post-metadata">

### Author: ![rseddon](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/rseddon/32/341_2.png) [@rseddon](https://community.sonatype.com/u/rseddon)
#### Post date: [March 17, 2020, 6:19pm UTC](https://community.sonatype.com/t/docker-repo-setup-with-already-established-reverse-proxy-with-nginx/3681/2 "2020-03-17T18:19:45Z")

</div>

Docker registries always need to run on web context path “/”. So you’ll need to configure either a virtual host or separate port in nginx that is listening on path “/”, and directing requests to the docker repository’s URL.

[https://support.sonatype.com/hc/en-us/articles/360000761828-Docker-Repository-Reverse-Proxy-Strategies](https://support.sonatype.com/hc/en-us/articles/360000761828-Docker-Repository-Reverse-Proxy-Strategies)

---

<div class="post-metadata">

### Author: ![jose.alvarez](https://avatars.discourse-cdn.com/v4/letter/j/c89c15/32.png) [@jose.alvarez](https://community.sonatype.com/u/jose.alvarez)
#### Post date: [March 17, 2020, 7:12pm UTC](https://community.sonatype.com/t/docker-repo-setup-with-already-established-reverse-proxy-with-nginx/3681/3 "2020-03-17T19:12:56Z")

</div>

Hi Rich,

Thanks for the quick response… what would you recommend? and is there a procedure you can point me to?

Respectfully,
