Merge pull request #801 from mailcow/disable-ipv6-update

Update instructions for disabling IPv6 in nginx
This commit is contained in:
FreddleSpl0it 2025-01-23 08:16:03 +01:00 committed by GitHub
commit 4e029bb987
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 44 additions and 12 deletions

View file

@ -116,11 +116,27 @@ Starten Sie Postfix neu:
**5.** Wenn im Docker Daemon IPv6 komplett deaktiviert ist:
Folgende NGINX, Dovecot und Php-fpm Konfigurationsdateien anpassen
Folgende Dovecot und Php-fpm Konfigurationsdateien anpassen
```
sed -i '/::/d' data/conf/nginx/templates/listen*
sed -i '/::/d' data/conf/nginx/dynmaps.conf
sed -i 's/,\[::\]//g' data/conf/dovecot/dovecot.conf
sed -i 's/\[::\]://g' data/conf/phpfpm/php-fpm.d/pools.conf
```
**6.** IPv6 Listener für NGINX deaktivieren
Setze `DISABLE_IPv6=y` in der Datei `mailcow.conf`.
Damit diese Änderung wirksam wird, muss der Container `nginx-mailcow` neu erstellt werden.
=== "docker compose (Plugin)"
``` bash
docker compose up -d
```
=== "docker-compose (Standalone)"
``` bash
docker-compose up -d
```

View file

@ -116,12 +116,28 @@ Restart Postfix:
**5.** If your docker daemon completly disabled IPv6:
Fix the following NGINX, Dovecot and php-fpm config files
Fix the following Dovecot and php-fpm config files
```
sed -i '/::/d' data/conf/nginx/templates/listen*
sed -i '/::/d' data/conf/nginx/dynmaps.conf
sed -i 's/,\[::\]//g' data/conf/dovecot/dovecot.conf
sed -i 's/\[::\]://g' data/conf/phpfpm/php-fpm.d/pools.conf
```
**6.** Disable IPv6 listeners for NGINX
Set `DISABLE_IPv6=y` in `mailcow.conf`
For this change to be effective, you need to recreate the `nginx-mailcow` Container
=== "docker compose (Plugin)"
``` bash
docker compose up -d
```
=== "docker-compose (Standalone)"
``` bash
docker-compose up -d
```