zoukankan      html  css  js  c++  java
  • centos7-collabora-office(在线文档编辑)

    1.wget https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-centos7/repodata/repomd.xml.key && rpm --import repomd.xml.key (网上自己下载)


    yum-config-manager--add-repo https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-centos7
    (报错yum-config-manager:command not found?  则执行yum install -y yum-utils)
    安装  yum install loolwsd CODE-brand


    2.vi /etc/loolwsd/loolwsd.xml
           false   #禁止ssl ,禁用https
        <ssl desc="SSL settings">

            <enable type="bool" desc="Controls whether SSL encryption between browser and loolwsd is enabled (do not disable for production deployment). If default is false, must first be compiled with SSL support to enable." default="true">false</enable>

            <termination desc="Connection via proxy where loolwsd acts as working via https, but actually uses http." type="bool" default="true">false</termination>

            <cert_file_path desc="Path to the cert file" relative="false">/etc/loolwsd/cert.pem</cert_file_path>

            <key_file_path desc="Path to the key file" relative="false">/etc/loolwsd/key.pem</key_file_path>

            <ca_file_path desc="Path to the ca file" relative="false">/etc/loolwsd/ca-chain.cert.pem</ca_file_path>

            <cipher_list desc="List of OpenSSL ciphers to accept" default="ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH"></cipher_list>

            <hpkp desc="Enable HTTP Public key pinning" enable="false" report_only="false">

                <max_age desc="HPKP's max-age directive - time in seconds browser should remember the pins" enable="true">1000</max_age>

                <report_uri desc="HPKP's report-uri directive - pin validation failure are reported at this URL" enable="false"></report_uri>

                <pins desc="Base64 encoded SPKI fingerprints of keys to be pinned">

                <pin></pin>

                </pins>

            </hpkp>

    </ssl>

    设置用户及密码

      <admin_console desc="Web admin console settings.">

            <enable desc="Enable the admin console functionality" type="bool" default="true">true</enable>

            <enable_pam desc="Enable admin user authentication with PAM" type="bool" default="false">false</enable_pam>

            <username desc="The username of the admin console. Ignored if PAM is enabled.">admin</username>

            <password desc="The password of the admin console. Deprecated on most platforms. Instead, use PAM or loolconfig to set up a secure password.">123456</password>

    </admin_console>


    localhost  #设置允许的域名
    配置 nginx 转发, 同样推荐https 。如果 owncloud 和 collabora 走得协议不一致也会出问题
    3.启动服务
    systemctl start loolwsd
    4.curl -s http://localhost:9980/hosting/discovery 出现xml内容,   证明软件安装成功了
    5. 配置nginx
    server {
       listen      80;
       server_name  collabora.example.com;
     
        # static files
        location ^~ /loleaflet {
           proxy_pass http://localhost:9980;
           proxy_set_header Host $http_host;
        }
     
        # WOPI discovery URL
        location ^~ /hosting/discovery {
           proxy_pass http://localhost:9980;
           proxy_set_header Host $http_host;
        }
     
        # main websocket
        location ~ ^/lool/(.*)/ws$ {
           proxy_pass http://localhost:9980;
           proxy_set_header Upgrade $http_upgrade;
           proxy_set_header Connection "Upgrade";
           proxy_set_header Host $http_host;
           proxy_read_timeout 36000s;
        }
     
        # download, presentation and image upload
        location ~ ^/lool {
           proxy_pass http://localhost:9980;
           proxy_set_header Host $http_host;
        }
     
        # Admin Console websocket
        location ^~ /lool/adminws {
           proxy_pass http://localhost:9980;
           proxy_set_header Upgrade $http_upgrade;
           proxy_set_header Connection "Upgrade";
           proxy_set_header Host $http_host;
           proxy_read_timeout 36000s;
        }
    }

    配置完成后。 访问 https://localhost:9980/loleaflet/dist/admin/admin.html 输入配置项中的账号密码

    会显示collabora的后台数据

    安装 collabora online

    owncloud app 列表里边找到 collabora online 插件。安装。 有可能会出错。

    https://marketplace.owncloud.com/apps 里边找到这个插件,下载后是richdocuments-2.3.0.tar.gz,然后传到 owncloud/apps 目录,然后解压启用。

    然后配置 在线协作

     

    配置好之后,列表里的office 文件可以直接线上打开

    安装ONLYOFFICE插件

    owncloud app 列表里边找到 ONLYOFFICE 插件。安装。 有可能会出错。

    https://marketplace.owncloud.com/apps 里边找到这个插件,下载,然后传到 owncloud/apps 目录,然后启用。

    然后配置 在线协作

    纵有白头俱老意,奈何缘浅路芊芊.
  • 相关阅读:
    php读取excel文件的实例代码
    PHP连接局域网MYSQL数据库的实例
    一个经典实用的iptables shell脚本
    PHP中strtotime函数使用方法分享
    php strtotime 函数UNIX时间戳
    解析php时间戳与日期的转换
    有关Mysql连接问题
    PHP获取时间日期的多种方法
    PHP引用符&的用法详细解析
    PHP获取与操作php.ini文件的几个函数示例
  • 原文地址:https://www.cnblogs.com/hanby/p/14151016.html
Copyright © 2011-2022 走看看