Office Online Server 提示"已拒绝连接"

Seafile 9.0.4 + Office Online Server 2016。 seafile(“ht tps:// mydomain.cn: 8000”)能正常使用。"ht tp://office.mydomain.cn/hosting/discovery"能获取到xml文件;“ht tp:// office.mydomain/op/generate.aspx"也能正常访问,用的是80端口。就是在seafile上打开一个excel文件显示"office.mydomain.cn已拒绝连接”。

seafile服务端nginx的配置是参照官方配置:

Enable LibreOffice Online

ENABLE_OFFICE_WEB_APP = True

Url of LibreOffice Online’s discovery page

The discovery page tells Seafile how to interact with LibreOffice Online when view file online

You should change https://collabora-online.seafile.com/hosting/discovery to your actual LibreOffice Online server address

OFFICE_WEB_APP_BASE_URL = ‘http://office. mydomain. cn/hosting/discovery’

Expiration of WOPI access token

WOPI access token is a string used by Seafile to determine the file’s

identity and permissions when use LibreOffice Online view it online

And for seicurity reason, this token should expire after a set time period

WOPI_ACCESS_TOKEN_EXPIREATION = 30 * 60

List Of File Formats That You Want To View To View Through LibreOffice Online

You Can Change This Value According To Your Preferences

And Of Course You Should Make Sure Your LibreOffice Online Supports To Preview

The Files With The Specified Extensions

OFFICE_WEB_APP_FILE_EXTENSION = (‘odp’, ‘ods’, ‘odt’, ‘xls’, ‘xlsm’, ‘xlsx’, ‘ppsx’, ‘ppt’, ‘pptm’, ‘pptx’, ‘doc’, ‘docm’, ‘docx’)

Enable Edit Files Through LibreOffice Online

ENABLE_OFFICE_WEB_APP_EDIT = True

Types Of Files Should Be Editable Through LibreOffice Online

OFFICE_WEB_APP_EDIT_FILE_EXTENSION = (‘odp’, ‘ods’, ‘odt’, ‘xls’, ‘xlsb’, ‘xlsm’, ‘xlsx’, ‘ppsx’, ‘ppt’, ‘pptm’, ‘pptx’, ‘doc’, ‘docm’, ‘docx’)

请问这种情况该怎么解决?

看一下请求 是哪个请求被拒绝了