Hi, as recommended I’m using the WSGI mode for communication between Seahub and Nginx on my raspberry pi. I followed the official steps to switch from fastcgi. After the change the client is syncing with the server, but when I try to login via my web browser I get this error:
Hi, we’re running on apache, having the same error, just upgraded to Seafile Pro 6.3.4 so can’t use fcgi mode anymore, it works internally, in the office, however externally we use HAProxy on pfSense to access the seafile server, and we get the 403 forbidden as above, sorry to hijack this post, just hoping someone who sorted it was able to know what to do in apache for this!
Okay managed to sort this.
To anyone in the rare case of using pfSense and HAProxy here’s what:
On the backend for Seafile, add a new custom acl with the settings
Name: seafileserver
Expression: Custom acl
Not: leave unchecked
Value: ssl_fc
then add a custom action:
Action: custom
ACL name: seafileserver
customaction: reqadd X-Forwarded-Proto:\ https
then the
Forbidden (403)
CSRF verification failed. Request aborted.
More information is available with DEBUG=True.
error will go (trying to make this solution as searchable as possible!)