• Настройка Nextcloud за реверсивным Nginx proxy

 #10645   IgorA100
 19 авг 2022, 13:28
В config.php необходимо добавить строки:
Код: Выделить всё'forcessl' => true,
'overwriteprotocol' => 'https',

Иначе в некоторых моментах получите в nextcloud ошибку
csrf check failed


Подобное обсуждение: https://github.com/nextcloud/server/issues/17065
Решение: https://github.com/nextcloud/server/iss ... -274376615
 #10799   IgorA100
 19 мар 2025, 15:45
Nextcloud не дружит с mod_rpaf на Apache 2.4 и его требуется обязательно отключить
Код: Выделить всёa2dismod rpaf

А так-же обязательно включить remoteip
Код: Выделить всёa2enconf remoteip

Далее в конфиге прописываем:
Код: Выделить всё# cat /etc/apache2/conf.d/remoteip.conf
#RemoteIPHeader X-Real-IP
#RemoteIPHeader X-Client-IP
RemoteIPHeader X-Forwarded-For
#RemoteIPTrustedProxy IntIP_reverse_nginx_proxy ExtIP_reverse_nginx_proxy
#RemoteIPInternalProxy IntIP_reverse_nginx_proxy ExtIP_reverse_nginx_proxy
#RemoteIPInternalProxy 127.0.0.1
RemoteIPInternalProxy IntIP_reverse_nginx_proxy


И рестарт апача