Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .config/trusted_proxies.config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

if ($trustedProxies = getenv('TRUSTED_PROXIES')) {
$CONFIG['trusted_proxies'] = explode(' ', $trustedProxies);
} else {
$CONFIG['trusted_proxies'] = ['172.16.0.0/12', '192.168.0.0/16', '10.0.0.0/8'];
}
7 changes: 7 additions & 0 deletions 15.0/apache/config/trusted_proxies.config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

if ($trustedProxies = getenv('TRUSTED_PROXIES')) {
$CONFIG['trusted_proxies'] = explode(' ', $trustedProxies);
} else {
$CONFIG['trusted_proxies'] = ['172.16.0.0/12', '192.168.0.0/16', '10.0.0.0/8'];
}
7 changes: 7 additions & 0 deletions 15.0/fpm-alpine/config/trusted_proxies.config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

if ($trustedProxies = getenv('TRUSTED_PROXIES')) {
$CONFIG['trusted_proxies'] = explode(' ', $trustedProxies);
} else {
$CONFIG['trusted_proxies'] = ['172.16.0.0/12', '192.168.0.0/16', '10.0.0.0/8'];
}
7 changes: 7 additions & 0 deletions 15.0/fpm/config/trusted_proxies.config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

if ($trustedProxies = getenv('TRUSTED_PROXIES')) {
$CONFIG['trusted_proxies'] = explode(' ', $trustedProxies);
} else {
$CONFIG['trusted_proxies'] = ['172.16.0.0/12', '192.168.0.0/16', '10.0.0.0/8'];
}
7 changes: 7 additions & 0 deletions 16.0/apache/config/trusted_proxies.config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

if ($trustedProxies = getenv('TRUSTED_PROXIES')) {
$CONFIG['trusted_proxies'] = explode(' ', $trustedProxies);
} else {
$CONFIG['trusted_proxies'] = ['172.16.0.0/12', '192.168.0.0/16', '10.0.0.0/8'];
}
7 changes: 7 additions & 0 deletions 16.0/fpm-alpine/config/trusted_proxies.config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

if ($trustedProxies = getenv('TRUSTED_PROXIES')) {
$CONFIG['trusted_proxies'] = explode(' ', $trustedProxies);
} else {
$CONFIG['trusted_proxies'] = ['172.16.0.0/12', '192.168.0.0/16', '10.0.0.0/8'];
}
7 changes: 7 additions & 0 deletions 16.0/fpm/config/trusted_proxies.config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

if ($trustedProxies = getenv('TRUSTED_PROXIES')) {
$CONFIG['trusted_proxies'] = explode(' ', $trustedProxies);
} else {
$CONFIG['trusted_proxies'] = ['172.16.0.0/12', '192.168.0.0/16', '10.0.0.0/8'];
}
7 changes: 7 additions & 0 deletions 17.0/apache/config/trusted_proxies.config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

if ($trustedProxies = getenv('TRUSTED_PROXIES')) {
$CONFIG['trusted_proxies'] = explode(' ', $trustedProxies);
} else {
$CONFIG['trusted_proxies'] = ['172.16.0.0/12', '192.168.0.0/16', '10.0.0.0/8'];
}
7 changes: 7 additions & 0 deletions 17.0/fpm-alpine/config/trusted_proxies.config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

if ($trustedProxies = getenv('TRUSTED_PROXIES')) {
$CONFIG['trusted_proxies'] = explode(' ', $trustedProxies);
} else {
$CONFIG['trusted_proxies'] = ['172.16.0.0/12', '192.168.0.0/16', '10.0.0.0/8'];
}
7 changes: 7 additions & 0 deletions 17.0/fpm/config/trusted_proxies.config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

if ($trustedProxies = getenv('TRUSTED_PROXIES')) {
$CONFIG['trusted_proxies'] = explode(' ', $trustedProxies);
} else {
$CONFIG['trusted_proxies'] = ['172.16.0.0/12', '192.168.0.0/16', '10.0.0.0/8'];
}
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ One or more trusted domains can be set by environment variable, too. They will b

- `NEXTCLOUD_TRUSTED_DOMAINS` (not set by default) Optional space-separated list of domains

One or more trusted proxies can be set by environemnt variable. You may adjust this value if your docker network uses a different ip block.

- `TRUSTED_PROXIES` (default: 172.16.0.0/12, 192.168.0.0/16, 10.0.0.0/8) Optional space-separated list of IPv4 or IPv6 adresses. CIDR is supported for IPv4 only.

The install and update script is only triggered when a default command is used (`apache-foreground` or `php-fpm`). If you use a custom command you have to enable the install / update with

- `NEXTCLOUD_UPDATE` (default: _0_)
Expand All @@ -156,7 +160,7 @@ To use a external SMTP server you have to provide the conection details. To conf
- `MAIL_FROM_ADDRESS` (not set by default) Use this address for the 'from' field in the mail envelopes sent by Nextcloud.
- `MAIL_DOMAIN` (not set by default) Set a different domain for the emails than the domain where Nextcloud is installed.

Check the [Nextcloud documentation](https://docs.nextcloud.com/server/15/admin_manual/configuration_server/email_configuration.html) for other values to configure SMTP.
Check the [Nextcloud documentation](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/email_configuration.html) for other values to configure SMTP.


# Running this image with docker-compose
Expand Down