YunoHost-Apps / nextcloud_ynh

Nextcloud package for YunoHost
https://nextcloud.com/
GNU Affero General Public License v3.0
144 stars 62 forks source link

Testing #688

Closed ericgaspar closed 2 weeks ago

ericgaspar commented 1 month ago
ericgaspar commented 1 month ago

!testme

yunohost-bot commented 1 month ago

:carousel_horse: Test Badge

yunohost-bot commented 1 month ago

:worm: Test Badge

ericgaspar commented 1 month ago

!testme

yunohost-bot commented 1 month ago

:rocket: Test Badge

yunohost-bot commented 1 month ago

:bug: Test Badge

nicofrand commented 2 weeks ago

Hi!

I don't know if this is related to testing or also the case with master but I get this error in /admin/overview:

Votre dossier de données et vos fichiers sont probablement accessibles depuis internet. Le fichier .htaccess ne fonctionne pas. Nous vous recommandons vivement de configurer votre serveur web de façon à ce que ce dossier de données ne soit plus accessible, ou de le déplacer hors de la racine du serveur web.

It basically says that the .htaccess is not working and my data is reachable through internet.

root@nicofrand:/var/www/nextcloud# ls -la /home/yunohost.app/nextcloud/data/.htaccess 
-rw-r----- 1 nextcloud nextcloud 542 Jun 20 08:03 /home/yunohost.app/nextcloud/data/.htaccess

root@nicofrand:/var/www/nextcloud# cat /home/yunohost.app/nextcloud/data/.htaccess 
# Generated by Nextcloud on 2024-06-20 08:03:52
# Section for Apache 2.4 to 2.6
<IfModule mod_authz_core.c>
  Require all denied
</IfModule>
<IfModule mod_access_compat.c>
  Order Allow,Deny
  Deny from all
  Satisfy All
</IfModule>

# Section for Apache 2.2
<IfModule !mod_authz_core.c>
  <IfModule !mod_access_compat.c>
    <IfModule mod_authz_host.c>
      Order Allow,Deny
      Deny from all
    </IfModule>
    Satisfy All
  </IfModule>
</IfModule>

# Section for Apache 2.2 to 2.6
<IfModule mod_autoindex.c>
  IndexIgnore *
</IfModule>
nicofrand commented 2 weeks ago

:facepalm: That might only be a warning for apache and should be ignored? I don't know if nginx is secured enough though?

ericgaspar commented 2 weeks ago

We have some rules borrowed from .htaccess in our NGINX config

nicofrand commented 2 weeks ago

We have some rules borrowed from .htaccess in our NGINX config

Do you know if nextcloud really checks the file access or just the htaccess by another way? Maybe the nginx config is broken too?