Hi Seafile Community!
I recently noticed something interesting: I can preview documents like .doc, .xlsx, .pdf online in seahub, but when I choose “view” for an older version of the same file at the file history window, it says:
"Online view is not applicable to this file format".
Same thing happens when I attempt to view online any document while browsing a library snapshot.
Is that mean online file preview is not implemented for “file history browsing” or maybe I forgot to configure something? I checked the logs for error messages, but nothing showed up related to office file conversations.
I use Seafile pro edition 7.1.14, deployed with docker (multi container setup), sitting behind nginx reverse proxy.
my seafevents.conf:
[DATABASE]
type = mysql
host = db
port = 3306
username = seafile
password = ***
name = seahub_db
[AUDIT]
enabled = false
[INDEX FILES]
external_es_server = true
es_host = elasticsearch
es_port = 9200
enabled = true
interval = 10m
highlight = fvh
## If true, indexes the contents of office/pdf files while updating search index
## Note: If you change this option from "false" to "true", then you need to clear the search index and update the index again. See the FAQ for details.
index_office_pdf = false
[OFFICE CONVERTER]
port = 6000
host = 127.0.0.1
enabled = true
workers = 1
[SEAHUB EMAIL]
enabled = false
## interval of sending Seahub email. Can be s(seconds), m(minutes), h(hours), d(days)
#interval = 30d
# Enable statistics
[STATISTICS]
enabled=true
My seahub-settings.py:
# -*- coding: utf-8 -*-
SECRET_KEY = ******
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'seahub_db',
'USER': 'seafile',
'PASSWORD': *****
'HOST': 'db',
'PORT': '3306'
}
}
CACHES = {
'default': {
'BACKEND': 'django_pylibmc.memcached.PyLibMCCache',
'LOCATION': 'memcached:11211',
},
'locmem': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
},
}
COMPRESS_CACHE_BACKEND = 'locmem'
TIME_ZONE = mylocation
FILE_SERVER_ROOT = "https://seafile.mydomain.com/seafhttp"
EMAIL_USE_TLS = True
EMAIL_HOST = ***
EMAIL_HOST_USER = *****
EMAIL_HOST_PASSWORD = *****
EMAIL_PORT = 587
DEFAULT_FROM_EMAIL = ****
SERVER_EMAIL = *****
OFFICE_CONVERTOR_ROOT = 'http://127.0.0.1:6000/'
ENABLE_RESUMABLE_FILEUPLOAD = True
Can anyone confirm whether this is a normal/expected behavior?