# Nginx reverse proxy... how?

**URL:** <https://dietpi.com/forum/t/nginx-reverse-proxy-how/20072>\
**Category:** General Discussion\
**Tags:** proxy\
**Created:** [9 May 2024 20:51 UTC](https://dietpi.com/forum/t/nginx-reverse-proxy-how/20072 "2024-05-09T20:51:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TDuffinNTU](https://dietpi.com/forum/user_avatar/dietpi.com/tduffinntu/32/4725_2.png) [@TDuffinNTU](https://dietpi.com/forum/u/TDuffinNTU)\
**Post date:** [9 May 2024 20:51 UTC](https://dietpi.com/forum/t/nginx-reverse-proxy-how/20072/1 "2024-05-09T20:51:55Z")

</div>

I’m pretty new to reverse proxy stuff and I thought I’d try setting one up for some of my hosted services such as qbittorrent, dietpi-dashboard, \*arr apps etc. There’d be less open ports on my router too.

I first tried following the linode tutorial but that seemed to not work. Then, I saw a mention of adguard home on the forums and adapted it for dietpi-dashboard (port 5252), leaving me with:

```auto
location /terminal {
        proxy_pass http://localhost:5252;
}

```

in a file at /etc/nginx/sites-dietpi/terminal.conf

nginx seemed OK with it, and after reloading I tried [domain]/terminal which _appeared_ to work – The title showed up in the browser so I _know_ nginx properly redirected the request to port 5252, but the page was totally white and the console shows most/all of the requests failed.

Is there any good tutorials on how to set up nginx reverse proxies properly? Obviously could just ask for some config to copy for myself but I thought I’d try learning a bit in the process 😃 Thanks yall!

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [10 May 2024 06:38 UTC](https://dietpi.com/forum/t/nginx-reverse-proxy-how/20072/2 "2024-05-10T06:38:09Z")

</div>

The DietPi dashboard don’t support reverse proxy request yet [[Request] Adding base URL support for reverse proxy possibility · Issue #113 · ravenclaw900/DietPi-Dashboard · GitHub](https://github.com/ravenclaw900/DietPi-Dashboard/issues/113)

---

<div class="post-metadata">

**Author:** ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)\
**Post date:** [10 May 2024 07:18 UTC](https://dietpi.com/forum/t/nginx-reverse-proxy-how/20072/3 "2024-05-10T07:18:32Z")

</div>

IMO this is a quite good starting point, showing the aspects of a reverse proxy. Depending on the app you wanna reverse proxy you need to pass other stuff, like request headers etc.

[https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/](https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/)

---

<div class="post-metadata">

**Author:** ![TDuffinNTU](https://dietpi.com/forum/user_avatar/dietpi.com/tduffinntu/32/4725_2.png) [@TDuffinNTU](https://dietpi.com/forum/u/TDuffinNTU)\
**Post date:** [17 May 2024 17:36 UTC](https://dietpi.com/forum/t/nginx-reverse-proxy-how/20072/4 "2024-05-17T17:36:37Z")

</div>

Good to know 🙂 I’ve had more success with qbittorrent since they provide an nginx config example but need to set up SSL for it now

---

<div class="post-metadata">

**Author:** ![system](https://dietpi.com/forum/uploads/default/original/1X/7e1021de2213860bce185915ce2c1786e56490ec.png) [@system](https://dietpi.com/forum/u/system)\
**Post date:** [13 November 2024 17:37 UTC](https://dietpi.com/forum/t/nginx-reverse-proxy-how/20072/5 "2024-11-13T17:37:35Z")

</div>

Closed on 13 November 2024 17:37 UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
