centos7 部署collabora office (yum版 与 docker)

collabora office 是一款在线文档编辑工具,经常与Nextcloud相结合,这里只介绍单独的collabora office

一、非docker部署

1、时间更新
tzselect
	分别按5  9   1   1
	然后 cp -r /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
yum install ntp -y
ntpdate asia.pool.ntp.org
crontab  -e
*/10 * * * * ntpdate asia.pool.ntp.org
2、设置yum源
wget -c https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-centos7/repodata/repomd.xml.key  --no-check-certificate
rpm --import repomd.xml.key
yum install -y yum-utils
yum-config-manager --add-repo https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-centos7
3、安装
yum install loolwsd CODE-brand -y
4、配置

vim /etc/coolwsd/coolwsd.xml
改其中两段即可

vim /etc/coolwsd/coolwsd.xml
    <ssl desc="SSL settings">
        <!-- switches from https:// + wss:// to http:// + ws:// -->
        <enable type="bool" desc="Controls whether SSL encryption between coolwsd and the network is enabled (do not disable for production deployment). If def
ault is false, must first be compiled with SSL support to enable." default="true">false</enable>
        <!-- SSL off-load can be done in a proxy, if so disable SSL, and enable termination below in production -->
        <termination desc="Connection via proxy where coolwsd 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/coolwsd/cert.pem</cert_file_path>
        <key_file_path desc="Path to the key file" relative="false">/etc/coolwsd/key.pem</key_file_path>
        <ca_file_path desc="Path to the ca file" relative="false">/etc/coolwsd/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 coolconfig to set up a secure password.">123456</p
assword>
    </admin_console>
5、启动 && 测试
systemctl start coolwsd
curl -n 192.168.0.56:9980
OK

二、docker方式

1、docker pull && docker run
docker pull collabora/code:6.4.14.3
docker run -itd -p 9980:9980  \
 -e "domain=" \
 -e "username=admin" \
 -e "password=123456" \
 --restart=always \
 --name=collabora \
 collabora/code:6.4.14.3

浏览器浏览
https://ip:9980/loleaflet/dist/admin/adminSettings.html
用户名:admin 密码:123
在这里插入图片描述

2、设置http访问
docker cp ffbb:/etc/loolwsd/loolwsd.xml loolwsd.xml

vim loolwsd.xml

168         <wopi desc="Allow/deny wopi storage. Mutually exclusive with webdav." allow="true">
			增加下面一行
169             <host desc="Regex pattern of hostname to allow or deny." allow="true">.*</host>
126         <enable type="bool" desc="Controls whether SSL encryption between loolwsd and the network 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>
改为false
184             <as_scheme type="bool" default="true" desc="When set we exclusively use the WOPI URI's scheme to enable SSL for storage">false</as_scheme>
改为false
chmod 777 loolwsd.xml	
docker cp loolwsd.xml ffbb:/etc/loolwsd/loolwsd.xml
docker restart  ffbb

如此,即可使用http了
http://ip:9980

-------------------end

  • 4
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值