So fast-cgi has been dropped, is there a chapter in the manual how to migrate?

just wondered why i cant switch from community server 6.2.5. to 6.3.4 ("Unknown command: ‘runfcgi’
") and found out, that fast-cgi support had been dropped:

Is there a doc about migration?
From 6.2, It is recommended to use WSGI mode for communication between Seahub and Nginx/Apache. Two steps are needed if you’d like to switch to WSGI mode:

Change the config file of Nginx/Apache.
Restart Seahub with ./ start instead of ./ start-fastcgi
The configuration of Nginx is as following:

location / {
         proxy_set_header   Host $host;
         proxy_set_header   X-Real-IP $remote_addr;
         proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
         proxy_set_header   X-Forwarded-Host $server_name;
         proxy_read_timeout  1200s;

         # used for view/edit office file via Office Online Server
         client_max_body_size 0;

         access_log      /var/log/nginx/seahub.access.log;
         error_log       /var/log/nginx/seahub.error.log;

The configuration of Apache is as following:

# seahub

SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
ProxyPass /
ProxyPassReverse /
1 Like

Would you mind committing this to the community manual in the upgrade section?
Just push the code, I’ll clean it up structurewise afterwards.


yes, it could help seafile users

1 Like

I would like try this procedure to solve my seafile server problem (not working after upgrade) but i don’t know where to find:

Change the config file of Nginx/Apache
Where do i find this config file and what is usualy the name of this file

I allso vaguely remember i automated the startup op the but i can not find where i did that 2 years ago, anybody an idea what a common way is to automate startup processes in a debian server.

If i get it together i would like to try to make a step by step manual for other users like me who don’t work with linux debian on an daily basis.
What would be good place to post a manual like that?

Kind Regards

i found a file called 000-default.conf and it seems to me this what i need to edit so this so i put in the lines on the seahub section:

But i think suhub still starts as fast cgi
LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub (fastcgi) at …

Warning: File comment has changed since version 6.3, while table `base_filecomm$

^[[33mError:Seahub failed to start.^[[m

—end cut—
How/where do i change that??

Kind Regards