josegonzalez / dokku-nginx-stream

dokku plugin to open TCP ports on the application for the outside world.
8 stars 6 forks source link

It does not seem to be working #6

Open LeoMartinDev opened 1 year ago

LeoMartinDev commented 1 year ago

When I try to add a TCP port, the plugin says that no tcp/udp port has been specified

dokku ports:set mail.ghostlymail.com tcp:25:25
-----> Creating http nginx.conf
No stream (tcp/udp) ports specified.
jbosse commented 5 months ago

@LeoMartinDev I just ran across this issue as well. I forked to try to resolve and in examining the source code I think the issue is that this plugin was created for an older version of Dokku that did things a little differently. It is looking for an ENV that I think was previously set by dokku proxy:ports-add that is not set by the newer dokku ports:set.

I think in your case if you try dokku config:set mail.ghostlymail.com DOKKU_PROXY_PORT_MAP=tcp:25:25 then it will work for you.