Hi,
I have read and follow all the doc and the others Topic, without success. I’ve got a page which tells me
“Désolé, mais la page demandée est introuvable.”
Nothing in my logs, the server works.
GNU nano 5.8 /donnees/seafile-server/conf/gunicorn.conf.py
import os
daemon = True
workers = 5
# default localhost:8000
bind = "127.0.0.1:8000"
# Pid
pids_dir = '/donnees/seafile-server/pids'
pidfile = os.path.join(pids_dir, 'seahub.pid')
# for file upload, we need a longer timeout value (default is only 30s, too short)
timeout = 1200
limit_request_line = 8190
# -*- coding: utf-8 -*-
SECRET_KEY = "b'#o)vfy9#)o)^^euo5(spm+z(#(eozmxzui9=a=+v*6-tdcz*!*'"
SERVE_STATIC = False
MEDIA_URL = '/seafmedia/'
COMPRESS_URL = MEDIA_URL
STATIC_URL = MEDIA_URL + 'assets/'
LOGIN_URL = '/seafile/accounts/login/' # NOTE: since version 5.0.4
SITE_ROOT = '/seafile/'
FILE_SERVER_ROOT = 'https://bibitocarlos.ddns.net/seafhttp'
CACHES = {
'default': {
'BACKEND': 'django_pylibmc.memcached.PyLibMCCache',
'LOCATION': '127.0.0.1:11211',
},
}
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'seahub-db',
'USER': 'seafile',
'PASSWORD': 'seafile',
'HOST': '127.0.0.1',
'PORT': '3306'
}
}
MAX_NUMBER_OF_FILES_FOR_FILEUPLOAD = 5000
ENABLE_SETTINGS_VIA_WEB = True
GNU nano 5.8 /donnees/seafile-server/conf/ccnet.conf
[General]
SERVICE_URL = https://bibitocarlos.ddns.net/seafile
[Database]
ENGINE = mysql
HOST = 127.0.0.1
PORT = 3306
USER = seafile
PASSWD = seafile
DB = ccnet-db
CONNECTION_CHARSET = utf8
location /seafile {
proxy_pass http://localhost:8000/;
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_set_header X-Forwarded-Proto $scheme;
# proxy_http_version 1.1;
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://localhost:8082;
client_max_body_size 0;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
#proxy_http_version 1.1;
proxy_connect_timeout 36000s;
proxy_read_timeout 36000s;
access_log /var/log/nginx/seahub.access.log;
error_log /var/log/nginx/seahub.error.log;
}
location seafmedia {
rewrite ^/seafmedia(.*)$ /media$1 break;
root /donnees/seafile-server/seafile-server-latest/seahub;
access_log /var/log/nginx/seahub.access.log;
error_log /var/log/nginx/seahub.error.log;
}