Open devedse opened 1 year ago
Any way this could be implemented?
@simqui , ah nice. I hope either that one or just support for custom configs van be implemented.
It is possible to use custom stream config by writing into data/nginx/custom/stream.conf
This is the content of my stream.conf
upstream dns-servers {
server 192.168.0.2:53; # IP to my DNS server
}
server {
listen 853 ssl;
proxy_pass dns-servers;
# using existing cert
ssl_certificate /etc/letsencrypt/live/npm-1/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/npm-1/privkey.pem;
ssl_protocols TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_handshake_timeout 10s;
}
Reference:
if you are using docker-compose, make sure to add port 853:853
and run docker-compose up -d
again
Using custom conf brings issues if the cert is changed, and somehow forget to update the custom settings. It could be a workaround but finally I expect the support from official, and within UI.
Issue is now considered stale. If you want to keep it open, please comment :+1:
Is your feature request related to a problem? Please describe. I would like to create a reverse-proxy for a TCP stream that is encrypted with a certificate. (E.g. the NNTP protocol does this).
Describe the solution you'd like Basically create a 'stream' or something with a custom nginx config:
Describe alternatives you've considered I could run another Nginx host but I want to run everything in the nginx-proxy-manager
Additional context By manually modifying the file:
/data/nginx/stream/6.conf
I was able to get this working. This however will break the next time I modify this through the UI.