-
-
Notifications
You must be signed in to change notification settings - Fork 881
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make nginx-unit listen on IPv4 and IPv6 #889
Conversation
This configurations doesn't work if on system with ipv6 disabled
How to repeat: |
I confirm this behaviour. Not everyone has IPv6 enabled |
Hi, I have the same problem. I don't use IPv6 adresses. 2023/01/10 13:50:17 [notice] 7#7 process 14 exited with code 0 To work around this problem, I have to overwrite the nginx-unit.json file by removing the ipv6 part. All done in my docker-compose file. |
Mind sharing how you did that? I'm having the same problem, and I'm not that familiar with docker |
Hi, You need to put your "nginx-unit.json" file in a directory on your server and remove the ipv6 part. Then in your docker-compose file, you must create a volume between your corrected file and the file that is placed in the docker (foler /etc/unit/). Finally you have to launch the commande "docker-compose up -d" to rebuild the docker. version: '3.4' Br, Chris. |
My biggest headache was how to get the nginx-unit.json file out from my container when it wouldn't boot.. Then changed my docker-compose.override.yml file as you suggested and ran docker-compose up -d |
Related Issue: #887
New Behavior
Nginx Unit listens on IPv4 and IPv6.
Contrast to Current Behavior
It seems that
*:8080
only binds to0.0.0.0:8080
, unfortunately.Discussion: Benefits and Drawbacks
I don't see any drawbacks.
Changes to the Wiki
n/a
Proposed Release Note Entry
The container will now also listen on IPv6.
Double Check
develop
branch.