参考资料:
搭建参考: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

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

被折叠的 条评论
为什么被折叠?



