meili-NG / meiliNG.js

meiliNG: Easy Identity/Login Infrastructure, Next Generation. Supports oAuth2 and OpenID Connect specifications
https://meili.ng
MIT License
21 stars 7 forks source link

FASTIFY_LISTEN configuration for UNIX Socket does not work #54

Closed Alex4386 closed 1 year ago

Alex4386 commented 1 year ago

How to reproduce

  1. Use meiliNG v0.9.5 or later
  2. Set FASTIFY_LISTEN to unix socket path
  3. Start meiliNG with yarn start
  4. See fastify logs reporting meiliNG has started up with wrong port.
Alex4386 commented 1 year ago

https://nodejs.org/api/net.html#serverlistenoptions-callback

This was due to node's net.Server.listen() spec being like this.