# @uppy/tus http going to https

**URL:** <https://community.transloadit.com/t/uppy-tus-http-going-to-https/17138>\
**Category:** Tus\
**Created:** [June 9, 2024, 9:49pm UTC](https://community.transloadit.com/t/uppy-tus-http-going-to-https/17138 "2024-06-09T21:49:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![abdullahIsa](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/abdullahisa/32/1153_2.png) [@abdullahIsa](https://community.transloadit.com/u/abdullahIsa)\
**Post date:** [June 9, 2024, 9:49pm UTC](https://community.transloadit.com/t/uppy-tus-http-going-to-https/17138/1 "2024-06-09T21:49:31Z")

</div>

Hello i am soo lost and confused and this super urgent and i think i have read and searched everywhere but @uppy/tus keeps converting my https url to http, i read need to do some reverse proxy but not sure how i send files with this route “/api/auth/upload/files” and i am hosting my project with docker + portainer + nginx proxy manager, so if i need to edit my nginx what do i write ? Thanks.

 ![Screenshot 2024-06-10 at 5.38.20 AM](https://canada1.discourse-cdn.com/flex032/uploads/transloadit/original/2X/a/a36d4f6b5a06682b94573ebce0f9e4d2bec3b298.png)

---

<div class="post-metadata">

**Author:** ![marius](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/marius/32/572_2.png) [@marius](https://community.transloadit.com/u/marius)\
**Post date:** [June 10, 2024, 7:08am UTC](https://community.transloadit.com/t/uppy-tus-http-going-to-https/17138/2 "2024-06-10T07:08:12Z")

</div>

What tus server are you using? If you use [tusd](https://github.com/tus/tusd), then please consult [Configuration | tusd documentation](https://tus.github.io/tusd/getting-started/configuration/#proxies) for information about how to configure proxies.

---

<div class="post-metadata">

**Author:** ![abdullahIsa](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/abdullahisa/32/1153_2.png) [@abdullahIsa](https://community.transloadit.com/u/abdullahIsa)\
**Post date:** [June 10, 2024, 7:27am UTC](https://community.transloadit.com/t/uppy-tus-http-going-to-https/17138/3 "2024-06-10T07:27:04Z")

</div>

I am using  
import { Server } from “@tus/server”;  
import { FileStore } from “@tus/file-store”;

in there documentation says there is this example, my docker runs on port 5000, do i just add that to the nginx with port 5000 ?

````auto
location / {
        # Forward incoming requests to local tusd instance
        proxy_pass http://localhost:8080;

        # Disable request and response buffering
        proxy_request_buffering off;
        proxy_buffering off;
        proxy_http_version 1.1;

        # Add X-Forwarded-* headers
        proxy_set_header X-Forwarded-Host $host;
        proxy_set_header X-Forwarded-Proto $scheme;

        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        client_max_body_size 0;
    }```
````

---

<div class="post-metadata">

**Author:** ![marius](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/marius/32/572_2.png) [@marius](https://community.transloadit.com/u/marius)\
**Post date:** [June 10, 2024, 7:30am UTC](https://community.transloadit.com/t/uppy-tus-http-going-to-https/17138/4 "2024-06-10T07:30:09Z")

</div>

> [@abdullahIsa](#):
>
> in there documentation says there is this example, my docker runs on port 5000, do i just add that to the nginx with port 5000 ?

You should set

```auto
proxy_pass http://localhost:5000;

```

and then put it with the other configuration options into wherever you configure nginx.

---

<div class="post-metadata">

**Author:** ![abdullahIsa](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/abdullahisa/32/1153_2.png) [@abdullahIsa](https://community.transloadit.com/u/abdullahIsa)\
**Post date:** [June 10, 2024, 7:55am UTC](https://community.transloadit.com/t/uppy-tus-http-going-to-https/17138/5 "2024-06-10T07:55:05Z")

</div>

Getting this when uploading with production url

`Mixed Content: The page at 'https://chappie.app/cloud/user/my-drive/665f8784e5818ea2fc809c8e' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://chappie.app/api/auth/upload/files/8cdbe3ebf24935c85c88e39f59f82585'. This request has been blocked; the content must be served over HTTPS.`

added this to the Custom Nginx Configuration

```auto
location /api/auth/upload/files {
        # Forward incoming requests to local tus instance
        proxy_pass http://localhost:5000; # tried with proxy_pass http://mypublicip:5000;

        # Disable request and response buffering
        proxy_request_buffering off;
        proxy_buffering off;
        proxy_http_version 1.1;

        # Add X-Forwarded-* headers
        proxy_set_header X-Forwarded-Host $host;
        proxy_set_header X-Forwarded-Proto $scheme;

        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        client_max_body_size 0;
}

```

i am selfhosting and not fully good with nginx yet so just using own selfhosted [https://nginxproxymanager.com](https://nginxproxymanager.com)

---

<div class="post-metadata">

**Author:** ![marius](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/marius/32/572_2.png) [@marius](https://community.transloadit.com/u/marius)\
**Post date:** [June 10, 2024, 8:02am UTC](https://community.transloadit.com/t/uppy-tus-http-going-to-https/17138/6 "2024-06-10T08:02:13Z")

</div>

Did you enable `respectForwardedHeaders` as mentioned in [tus-node-server/packages/server at main · tus/tus-node-server · GitHub](https://github.com/tus/tus-node-server/tree/main/packages/server#example-use-with-nginx)?

---

<div class="post-metadata">

**Author:** ![abdullahIsa](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/abdullahisa/32/1153_2.png) [@abdullahIsa](https://community.transloadit.com/u/abdullahIsa)\
**Post date:** [June 10, 2024, 8:55am UTC](https://community.transloadit.com/t/uppy-tus-http-going-to-https/17138/7 "2024-06-10T08:55:28Z")

</div>

Thanks soooo much it worked and if anyone using self hosted [https://nginxproxymanager.com](https://nginxproxymanager.com/) use ur public ip with port not localhost or will be failing.

Thanks now i can update clients 😂 💯
