Hi Lin,
now I realized that also the webinterface down and upload fails, I also think there is some
misconfiguration. There I get a 502 "Bad Gateway Error". I choosed nginx because I wanted https, and I also moved seafile away from the server root
to /sea according to
https://github.com/haiwen/seafile/wiki/Deploy-Seafile-Web-at-Non-root-domain. One of my clients sits behind a firewall which blocks
ports 10001 and 12001, so I choose 8081 for ccnet and 8082 for seahub deamon.
here are the server confs:
-ccnet.conf-
[General]
USER_NAME = GraspSF
ID = b00e5dc34ebacaccc72010464df063efb3c9f188
NAME = GraspSF
SERVICE_URL =
https://myserver.com/sea[Network]
PORT = 8081
[Client]
PORT = 13418
--seafile.conf---
[network]
port=8082
[httpserver]
port=8083
--seahub_settings.py--
SECRET_KEY = "E7Qj9SrKcaBWDl_fS_dfLQ=="
HTTP_SERVER_ROOT = '
https://myserver.com/seafhttp'
# If you don't want to run seahub website on your site's root path, set this option to your preferred path.
# e.g. setting it to '/seahub/' would run seahub on
http://example.com/seahub/.
SITE_ROOT = '/sea/'
SERVE_STATIC = False
MEDIA_URL = '/seafmedia/'
# Set seahub website's title
SITE_TITLE = 'Gregs Seafile Service'
SITE_NAME = "Gregs Seafile @
shosti.mooo.com/sea"
# Enalbe or disalbe registration on web. Default is `False`.
# NOTE: since version 1.4.
ENABLE_SIGNUP = True
# Activate or deactivate user when registration complete. Default is `True`.
# If set to `False`, new users need to be activated by admin in admin panel.
# NOTE: since version 1.8
ACTIVATE_AFTER_REGISTRATION = False
--nginx.conf--
server {
# add_header Strict-Transport-Security "max-age=31536000; includeSubdomains";
# add_header Alternate-Protocol 443:npn-spdy/2;
# add_header X-Content-Type-Options "nosniff";
# add_header X-Frame-Option DENY;
listen 443;
ssl on;
ssl_certificate /etc/ssl/cacert.pem; # path to your cacert.pem
ssl_certificate_key /etc/ssl/privkey.pem; # path to your privkey.pem
server_name
myserver.com;
index index.html; #my add
root /var/www;
location /sea {
fastcgi_pass
127.0.0.1:8000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_script_name;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
fastcgi_param HTTPS on;
fastcgi_param HTTP_SCHEME https;
access_log /var/log/nginx/seahub.access.log;
error_log /var/log/nginx/seahub.error.log;
}
location /seafhttp {
rewrite ^/seafhttp(.*)$ $1 break;
proxy_pass
http://127.0.0.1:8082;
client_max_body_size 0;
}
location /seafmedia {
rewrite ^/seafmedia(.*)$ /media$1 break;
root /home/whir/sfile/seafile-server-latest/seahub;
}
}
That is hopefully all you wanted to see ?!
Thanks in advance!
Gregor