在服务器上使用Docker布署Seafile,登录时报错:

CSRF verification failed. Request aborted

这是nginx配置文件模板的原因,登录容器,修改

/templates/seafile.nginx.conf.template

其中一行为

proxy_set_header Host $host;

改为

proxy_set_header Host $host:1234;

1234是个示例,具体根据需要更改。

Leave a Reply

Your email address will not be published. Required fields are marked *