问题已经解决,这个问题困扰我好几年了 
参照 Cannot login, CSRF error. 无法登陆,提示CSRF错误。
crystal
19 年 3 月
编辑nginx的conf文件,将
proxy_set_header Host $host;
替换为
proxy_set_header Host $host:xxxx;
xxxx为你设定的https的端口号
Tshine
19 年 12 月
改成
proxy_set_header Host $http_host;
也可以,
这个方式最好。
因为是新用户不能包含太多链接,所以对内容有所删减