Docker部署NextCloud问题处理

问题1:您的网页服务器未正确设置以解析

Docker部署NextCloud问题处理

此问题需要在nginx上进行参数添加,相关解释如下:

rewrite /.well-known/carddav /remote.php/dav permanent;
rewrite /.well-known/caldav /remote.php/dav permanent;

参数解读:

rewrite /.well-known/carddav /remote.php/dav permanent;

当nginx收到请求URL中包含 /.well-known/carddav 时,会将请求重写为 /remote.php/dav,并返回永久重定向(HTTP状态码301)。这种重定向是永久性的,浏览器会记住这个重定向,并在以后的请求中直接访问被重定向的URL。

rewrite /.well-known/caldav /remote.php/dav permanent;

同样地,当nginx收到请求URL中包含 /.well-known/caldav 时,会将请求重写为 /remote.php/dav,并返回永久重定向。

问题2:“Strict-Transport-Security”HTTP 头未设为至少“15552000”秒。为了提高安全性,建议启用 HSTS

Docker部署NextCloud问题处理

需要在Nginx中添加如下参数:

add_header Strict-Transport-Security "max-age=63072000;";

当上面两个参数添加完成后,我们在做一次Nextcloud的检查,就会看到所有检查已经通过的状态

Docker部署NextCloud问题处理

此文章为原创文章,作者:胖哥叨逼叨,如若转载,请与我联系并注明出处:https://www.pangshare.com/2832.htm

(0)
打赏 微信扫一扫 微信扫一扫
上一篇 2023年10月24日 下午9:11
下一篇 2023年10月31日 下午2:30

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注