officeonlineserver实现文档在线编辑备忘录

本文档备忘录介绍了如何利用 Office Online Server 搭建文档在线编辑功能,详细步骤包括参考链接和注意事项。特别强调了不应在域控服务器或 OOS 服务器上部署,以及可以使用 Spring Cloud Gateway 自定义代理服务器。

参考资料:
搭建参考:https://zhuanlan.zhihu.com/p/357370263
编辑实现:https://blog.youkuaiyun.com/优快云877425287/article/details/118256620
官方参考:https://learn.microsoft.com/zh-cn/officeonlineserver/deploy-office-online-server
编辑注意:https://blog.youkuaiyun.com/zxl782340680/article/details/88125732

注意事项:
1、不要再域控服务器上部署oos,会导致文档无法加载。
2、不要再oos服务上部署服务,这玩意好资源。
3、其他参看文档就够了。

补充,由于oos的域名机制,我们可以自定义代理服务器,这里使用springcloudgateway实现:

<parent>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-gateway</artifactId>
        <version>3.1.3</version>
    </parent>

    <dependencies>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-gateway</artifactId>
            <version>3.1.3</version>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>
spring:
  cloud:
    gateway:
      routes:
      - id: fileserver
        predicates:
        - Path=/inner/api/**
        uri: http://localhost/inner/api
      - id: modifyresponse
        predicates:
        - Path=/**
        uri: http://172.16.0.97:5081

package com.yak.gateway.filter;

import org.reactivestreams.Publisher;
import org.springframework.cloud.gateway.filter.GatewayFilterChain;
import org.springframework.cloud.gateway.filter.GlobalFilter;
import org.springframework.core.Ordered;
import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.core.io.buffer.DataBufferUtils;
import org.springframework.http
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值