如题,我在seahub_settings.py中配置了如下:
SECRET_KEY = "0guagh0=r7z4zd7dc+3_%xvynk8%ey6+n)70nf_elr!8f5fnbi"
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'seahub-db',
'USER': 'seafile',
'PASSWORD': 'seafile',
'HOST': '127.0.0.1',
'PORT': '3306'
}
}
# Enable Only Office
ENABLE_ONLYOFFICE = True
VERIFY_ONLYOFFICE_CERTIFICATE = False
ONLYOFFICE_APIJS_URL = 'http://192.168.31.82/web-apps/apps/api/documents/api.js'
ONLYOFFICE_FILE_EXTENSION = ('doc', 'docx', 'ppt', 'pptx', 'xls', 'xlsx', 'odt', 'fodt', 'odp', 'fodp', 'ods', 'fods')
ONLYOFFICE_EDIT_FILE_EXTENSION = ('docx', 'pptx', 'xlsx')
ONLYOFFICE_JWT_SECRET = 'hmXnSRFCdS1ZGx22QgKMgL8o2oHwsEa0' #自定义secret
可是,当我在云盘中打开tutorial.doc后,结果变成了这样:
加载了,但是没完全加载,请问这种情况怎么办?
[2023-10-19T20:17:41.260] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 7.4.1. Build: 36
[2023-10-19T20:20:29.952] [WARN] [localhost] [5ff5b71a90a8b47d86b8] [userId] nodeJS - checkJwt error: name = JsonWebTokenError message = jwt must be provided token = undefined
[2023-10-19T12:24:13.163] [WARN] [localhost] [5ff5b71a90a8b47d86b8] [userId] nodeJS - checkJwt error: name = JsonWebTokenError message = jwt must be provided token = undefined
[2023-10-19T12:27:12.991] [WARN] [localhost] [5ff5b71a90a8b47d86b8] [userId] nodeJS - checkJwt error: name = JsonWebTokenError message = jwt must be provided token = undefined
[2023-10-19T12:27:18.301] [WARN] [localhost] [5ff5b71a90a8b47d86b8] [userId] nodeJS - checkJwt error: name = JsonWebTokenError message = jwt must be provided token = undefined
可是我给settings里添加的是/etc/onlyoffice/documentserver/local.json里的啊:
"secret": {
"inbox": {
"string": "hmXnSRFCdS1ZGx22QgKMgL8o2oHwsEa0"
},
"outbox": {
"string": "hmXnSRFCdS1ZGx22QgKMgL8o2oHwsEa0"
},
"session": {
"string": "hmXnSRFCdS1ZGx22QgKMgL8o2oHwsEa0"
},
"browser":{
"string":"mysecret"
}
}
不是这段儿里的吗?
运行onlyoffice时 应该就可以直接添加选项就可以,直接添加的话 你去官方上看看