
저는 데비안 스퀴즈에 Seafile 1.6.1을 설치하고 구성했습니다. 기본적으로 http, 포트 8000에서 작동합니다.
https를 설정하기 위해 다음 3줄을 seafile.conf
(https://github.com/haiwen/seafile/wiki/Enable-Https-on-Seafile-web#wiki-Enable_https_on_seafile_httpserver):
https=true
pemfile=/path/seafile-data/conf/cacert.pem
privkey=/path/seafile-data/conf/privkey.pem
나도 수정했습니다 ccnet.conf
.
SERVICE_URL = https://mycloud.mydomain.com:8000
Seafile과 Seahub를 다시 시작했습니다.
이 세 줄을 입력하자마자 더 이상 로그인 페이지를 얻을 수 없습니다. 시간 초과 오류 메시지가 나타납니다. 확인해보니 클라이언트와 서버 사이에 연결이 잘 되어있습니다.
누구든지 문제가 무엇인지 알 수 있습니까?
답변1
https에서 Seafile이 작동하도록 하려면 nginx를 올바르게 구성해야 했습니다:
server
{
listen 443;
ssl on;
ssl_certificate /etc/ssl/mycert.crt; # path to your cacert.pem
ssl_certificate_key /etc/ssl/mykey.key; # path to your privkey.pem
server_name mycloud.example.com;
location / {
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;
access_log /var/log/nginx/seahub.access.log;
error_log /var/log/nginx/seahub.error.log;
}
location /media {
root /data/cloud/seafile-server-1.6.1/seahub;
}
}
그렉.