Mr9 你的文档服务器是照着https://github.com/ibisheng/onlyoffice-api-deploy部署的对吧,看你的地址,不是特殊端口啊,就是默认的80,那你说的端口那里填了什么?

  • Mr9 回复了此帖

    Mr9 啊,这么奇怪的。你试试把服务器改成我的https://home.aten.pw:4443,api key不填,随便打开个不重要的文档。看看能不能行。

    • Mr9 回复了此帖

      zhtengw 可以打开,而且链接路径中也包含 document

        Mr9 链接地址就是这样的,word文档是document,ppt是presentation。那可能是服务端的原因,你的服务端是按照https://github.com/ibisheng/onlyoffice-api-deploy部署的吗?
        具体我也想不到哪里有问题,我严格按照毕升官方给的api来写URL了的。根据文档,{"code":"check callURL sign error"}也就是api key不匹配导致的……

        • Mr9 回复了此帖

          Mr9 那我明白了,毕升的api调用方式有两种,onlyoffice-api-deploy部署的两种都支持。我是使用第一种调用格式的,而windows部署的只支持第二种调用格式。

          • Mr9 回复了此帖

            Mr9 调用方式改了一下,你试试可不可以用

            bisheng-v1-2-forkod4-40.zip
            1MB
            bisheng-v1-2-forkod5.zip
            1MB
            • Mr9 回复了此帖
              6 天 后
              10 天 后

              @zhtengw 请问大佬 onlyoffice-api-deploy 怎么修改管理密码呀,后台管理的连接无法打开呀

                coolsd 删掉已经部署的,打开部署的脚本install.sh,把第74行:bash initAdminPass.sh bisheng 里的“bisheng”改成自己的密码,再重新部署。

                  2 个月 后

                  zhtengw 找大佬求救,不知道是配置了什么权限,现在admin进后台提示权限不足,有什么办法挽救吗?谢谢!!
                  就是apps/console/admin/organization 这个页面进去直接提示权限不足

                  bash initTools.sh 8 已重置解决,谢谢!

                  @zhtengw 关于毕升office的安装和调用请教几个问题:
                  1、docker部署的毕升office,在/bisheng_data/nginx/docker-compose.yml里修改了对应端口
                  84:80 8884:443,http用84端口能正常访问,https用8884怎么也无法访问。我的主机是本来装了宝塔,其他网站用的宝塔的web环境,包含nginx(也没有使用80和443端口,家宽动态IP,80和443都没开放)。不知道docker和宝塔的两个nginx的SSL是否有冲突?是否有相关的建议?
                  2、同主机用kodexplorer V4.4装了您的插件后用http或者https访问后无法调用毕升office,显示的错误类型是"code":"request data error","data":"","error":"无法连接到http://xx"......{"code":"参数错误"} ;但让人不解的是另外一台主机,装的KODexplorer一样的安装插件后,可以正常调用。不知道这中间有啥蹊跷。。。
                  希望您方便时帮我分析分析,非常感谢!


                    Noking 毕升的nginx默认没有监听443,你需要在service/nginx/config/conf.d/bisheng.conf添加以下内容,并把证书放到正确位置才能开启https(实际上就是照着80端口的设置再抄一遍)。

                    server {
                        listen       443 ssl default_server;
                        server_name  _;
                        ssl_certificate /keys/cert.crt;  # 指定证书的位置,绝对路径
                        ssl_certificate_key /keys/cert.key;  # 绝对路径,同上
                        ssl_protocols TLSv1 TLSv1.1 TLSv1.2; #按照这个协议配置
                        ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;
                    
                            location / {
                                proxy_set_header X-Real-IP $remote_addr;
                                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                                proxy_set_header Host $http_host;
                                proxy_set_header X-NginX-Proxy true;
                                        client_max_body_size 500m;
                                proxy_redirect off;
                                proxy_set_header x-scheme $scheme;
                                proxy_pass http://editor_app:5500;
                        }
                        location /apps{
                                    proxy_set_header X-Real-IP $remote_addr;
                                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                                proxy_set_header Host $http_host;
                                proxy_set_header X-NginX-Proxy true;
                                        client_max_body_size 500m;
                                proxy_redirect off;
                                proxy_set_header x-scheme $scheme;
                                    location /apps/editor {
                                        proxy_pass http://editor_app:5500/apps/editor;
                                    }
                                        location /apps/console {
                                                proxy_pass http://editor_app:5500/apps/console;
                                        }
                                }
                        location /officesite/static{
                                    proxy_set_header X-Real-IP $remote_addr;
                                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                                proxy_set_header Host $http_host;
                                proxy_set_header X-NginX-Proxy true;
                                        client_max_body_size 500m;
                                proxy_redirect off;
                                proxy_set_header x-scheme $scheme;
                                location /officesite/static/console {
                                        proxy_pass http://editor_app:5500/officesite/static/console;
                                }
                                    location /officesite/static/office {
                                        proxy_pass http://editor_app:5500/officesite/static/office;
                                    }
                                        location /officesite/static/editor {
                                                proxy_pass http://editor_app:5500/officesite/static/editor;
                                        }
                        }
                        location  /officesite/resource/custom/favicon.ico{
                                    proxy_pass http://editor_app:5500/officesite/resource/custom/favicon.ico;
                        }
                        location /ws{
                                proxy_buffering on;
                                proxy_buffer_size 4k;
                                proxy_buffers 8 1m;
                                proxy_busy_buffers_size 2m;
                                proxy_max_temp_file_size 1024m;
                                proxy_http_version 1.1;
                                proxy_set_header Upgrade $http_upgrade;
                                proxy_set_header Connection $connection_upgrade;
                                location /ws/editor {
                                        proxy_pass http://editor_app:5500/ws/editor;
                                }
                    
                        }
                        location /s3/{
                                proxy_set_header X-Real-IP $remote_addr;
                                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                                proxy_set_header X-NginX-Proxy true;
                                proxy_redirect off;
                                proxy_set_header x-scheme $scheme;
                                proxy_pass http://minio:9000/;
                        }
                    }