[GH-ISSUE #1857] Forwarding to a database #1362

Closed
opened 2026-02-26 07:30:40 +03:00 by kerem · 3 comments
Owner

Originally created by @choff5507 on GitHub (Feb 15, 2022).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1857

Im trying to create a proxy host that forwards to a database. There's an advanced tab where I see I can put something for the forward scheme but it doesn't seem to work for me. Can anyone assist with telling me how I can go about forwarding for services outside of HTTP?

Originally created by @choff5507 on GitHub (Feb 15, 2022). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1857 Im trying to create a proxy host that forwards to a database. There's an advanced tab where I see I can put something for the forward scheme but it doesn't seem to work for me. Can anyone assist with telling me how I can go about forwarding for services outside of HTTP?
kerem 2026-02-26 07:30:40 +03:00
  • closed this issue
  • added the
    stale
    label
Author
Owner

@FrAllard commented on GitHub (Feb 21, 2022):

I think what you're looking for is called a stream in nginx. But I don't think the NPM GUI will allow you to do it, I'm not 100% sure though. In my case I had to create a custom file (custom/stream.conf) and created the rule to stream DNS over TLS using a pihole container, mainly because the GUI doesn't let you manage the ssl certificate for the stream.

upstream dns-servers {
         server    pihole:53;
}

server {
    listen 853 ssl;
    ssl_certificate /etc/letsencrypt/live/npm-4/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/npm-4/privkey.pem;
    proxy_pass dns-servers;
}
 
<!-- gh-comment-id:1046430005 --> @FrAllard commented on GitHub (Feb 21, 2022): I think what you're looking for is called a stream in nginx. But I don't think the NPM GUI will allow you to do it, I'm not 100% sure though. In my case I had to create a custom file (custom/stream.conf) and created the rule to stream DNS over TLS using a pihole container, mainly because the GUI doesn't let you manage the ssl certificate for the stream. ``` upstream dns-servers { server pihole:53; } server { listen 853 ssl; ssl_certificate /etc/letsencrypt/live/npm-4/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/npm-4/privkey.pem; proxy_pass dns-servers; } ```
Author
Owner

@github-actions[bot] commented on GitHub (Feb 24, 2024):

Issue is now considered stale. If you want to keep it open, please comment 👍

<!-- gh-comment-id:1962209270 --> @github-actions[bot] commented on GitHub (Feb 24, 2024): Issue is now considered stale. If you want to keep it open, please comment :+1:
Author
Owner

@github-actions[bot] commented on GitHub (Apr 9, 2025):

Issue was closed due to inactivity.

<!-- gh-comment-id:2788107400 --> @github-actions[bot] commented on GitHub (Apr 9, 2025): Issue was closed due to inactivity.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#1362
No description provided.