[Nginx] Disable IPv6 listener for Rspamd dynmaps when DISABLE_IPv6=y
This commit is contained in:
parent
7bcd61ecb5
commit
1fca328266
@ -65,7 +65,9 @@ http {
|
|||||||
# rspamd dynmaps:
|
# rspamd dynmaps:
|
||||||
server {
|
server {
|
||||||
listen 8081;
|
listen 8081;
|
||||||
|
{% if not DISABLE_IPv6 %}
|
||||||
listen [::]:8081;
|
listen [::]:8081;
|
||||||
|
{%endif%}
|
||||||
index index.php index.html;
|
index index.php index.html;
|
||||||
server_name _;
|
server_name _;
|
||||||
error_log /var/log/nginx/error.log;
|
error_log /var/log/nginx/error.log;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user