docker-nextcloud icon indicating copy to clipboard operation
docker-nextcloud copied to clipboard

Configuration Warnings

Open asmitconsulting opened this issue 7 years ago • 4 comments

The following warnings will be displayed on my NAS after successful installation:

  • Your web server is not configured correctly to resolve "/.well-known/caldav". For more information, see the documentation.
  • Your web server is not configured correctly to resolve "/.well-known/carddav". For more information, see the documentation.
  • The "Referrer-Policy" HTTP header is not set to "no-referrer", "no-referrer-when-downgrade", "strict-origin" or "strict-origin-when-cross-origin". This allows reference information to be disclosed. See the W3C recommendation. How can these be fixed or could you correct the configuration in the same way? Thank you

asmitconsulting avatar Oct 17 '18 21:10 asmitconsulting

The "Referrer-Policy" HTTP header is not set to "no-referrer", "no-referrer-when-downgrade", "strict-origin" or "strict-origin-when-cross-origin". This can leak referer information. See the W3C Recommendation. This is fixed by the commit in #38.

yeoldegrove avatar Oct 29 '18 16:10 yeoldegrove

Unfortunately there will be more warnings with every update. Are you so nice to fix the problem? I would be very grateful to you.

PhiGi87 avatar Jan 30 '19 06:01 PhiGi87

The first two warnings seem also to cause the proposed URI for synchronizing with iOS to fail (See issue over at NextCloud documentation GitHub).

Looking at the General troubleshooting documentation and the example Nginx configuration this could be solved by properly setting the .well-known URI for service discovery. Adding the following lines to the Nginx configuration could do the trick

    location = /.well-known/carddav {
      return 301 $scheme://$host:$server_port/remote.php/dav;
    }
    location = /.well-known/caldav {
      return 301 $scheme://$host:$server_port/remote.php/dav;
    }

kw90 avatar May 06 '20 14:05 kw90

The first two warnings seem also to cause the proposed URI for synchronizing with iOS to fail (See issue over at NextCloud documentation GitHub).

Looking at the General troubleshooting documentation and the example Nginx configuration this could be solved by properly setting the .well-known URI for service discovery. Adding the following lines to the Nginx configuration could do the trick

    location = /.well-known/carddav {
      return 301 $scheme://$host:$server_port/remote.php/dav;
    }
    location = /.well-known/caldav {
      return 301 $scheme://$host:$server_port/remote.php/dav;
    }

U R RIGHT. The warnnings is from here. U must correct it as below: location = /.well-known/carddav { return 301 $scheme://$http_host/remote.php/dav; } location = /.well-known/caldav { return 301 $scheme://$http_host/remote.php/dav; }

tutu20120501 avatar Jun 13 '20 10:06 tutu20120501