Option to disable IPv6
Problem
I am trying to run your docker container on my Unraid Server (which does not support IPv6). Please add an option to disable IPv6/expose the nginx settings.
A workaround
I fixed it by adding listen 80 default_server; in nginx.conf and building the image myself.
Potential solution
It'd be great if you exposed a way to edit the nginx configuration files.
Thanks!
whats the problem if nginx listening on ipv4 and ipv6?
Since IPv6 is unsupported on unraid, when the container spins up, it throws an error about an unsupported protocol and fault to start. I was able to resolve the error by listening only on IPv4.
I'd like to see option to disable IPv4 :-)
im not sure about that. i thought nginx ignores it if ipv6 is missing.
Hi, Same problem for me for a few days, infinite restart of the container and many logs indicate it :
2024/04/14 09:17:30 [emerg] 303#303: socket() [::]:80 failed (97: Address family not supported by protocol)
nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
Thanks for considering this issue.
Fix by creating a copy of https://github.com/wallabag/docker/blob/master/root/etc/nginx/nginx.conf and comment line 39 "listen [::0]:80;". Mounting the file by Docker volume at the place /etc/nginx/nginx.conf