listen options
See original GitHub issuelisten 参数支持
module.exports = {
listen: {
path: '',
port: '',
backlog: '',
hostname: '',
}
}
listen 的时候可以获取 app.config
,所以参数加到 config 比 startCluster 更好。
- config.listen.port 的优先级高于 startCluster 传入的。
- 如果指定了 path 则优先级更高。
解决 https://github.com/eggjs/egg/issues/469 和 https://github.com/eggjs/egg/issues/435
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:13 (11 by maintainers)
Top Results From Across the Web
listen(2) - Linux manual page - man7.org
listen () marks the socket referred to by sockfd as a passive socket, that is, as a socket that will be used to...
Read more >Error: duplicate listen options for [::]:443 · Issue #5550 - GitHub
I get nginx: [emerg] duplicate listen options for [::]:443 in /etc/nginx/sites-enabled/others:19 for this config. OS: Ubuntu 16.04. Any help?
Read more >Listen Options - ejabberd Docs
This is a detailed description of each option allowed by the listening modules: access. AccessName. This option defines access to the port.
Read more >Nginx duplicate listen options for [::]:80 error - Server Fault
I have this in my server block: listen 80;listen [::]:80; and it runs fine. Do you have any other server blocks? – simlev....
Read more >SnapshotListenOptions - Node.js API reference - Firebase
An options object that can be passed to DocumentReference.onSnapshot() , Query.onSnapshot() and QuerySnapshot.docChanges() to control which types of changes ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
统一到 start 配置项?这样起多少个进程都可以配置了。而且也可以给后续扩展留好路子。
@popomore 希望尽快推出。如果有需要我们可以帮忙upstream。