当前位置:网站首页>Tencent lightweight + pagoda building document online preview project kkfileview
Tencent lightweight + pagoda building document online preview project kkfileview
2022-06-23 22:52:00 【Mr. Chen 1998】
One 、 Services used
1. Tencent cloud
Area and availability area | Shanghai | Shanghai area 2 |
|---|---|
Package type | Universal |
Example specifications | CPU: 2 nucleus Memory : 4GB |
System disk | 60GB SSD Cloud drive |
Flow packet | 1000GB/ month ( bandwidth :6Mbps) |
【 Tencent cloud 】 Lightweight application servers Lighthouse,「 light 」 Matsushita cloud !1 nucleus 2G6M The time limit is as low as 74 element / From the year onwards !
2. pagoda
- Pagoda server panel , One touch deployment and management , Send you 3188 Yuan gift bag , Order me to collect https://www.bt.cn/?invite_code=MV9kZXFwaXQ=
Installation command
curl -sSO http://download.bt.cn/install/install_panel.sh && bash install_panel.sh
Two 、 Project introduction
This project is an online preview project solution for documents , For paid products in the standard industry 【 evermore office】【office365】【idocv】 etc. , With the consent of the senior management of the company, we will Apache Open source agreements feed back the community , Thank you very much @ Boss Tang's support and @ Contribution of Duanmu detailed smile . The popular use of the project spring boot build , Easy to use and deploy , Basic support for online preview of mainstream office documents , Such as doc,docx,Excel,pdf,txt,zip,rar, Pictures, etc.
3、 ... and 、 Project features
- Support office, pdf, cad And other office documents
- Support txt, xml( Rendering ), md( Rendering ), java, php, py, js, css And all the plain text
- Support zip, rar, jar, tar, gzip Compression package, etc
- Support jpg, jpeg, png, gif, tif, tiff Wait for the picture preview ( Flip , The zoom , Mirror image )
- Use spring-boot Development , The preview service setup and deployment is very simple
- rest Interface provides services , Cross language 、 Cross-platform feature (java,php,python,go,php,….) All support , Application access is simple and convenient
- Abstract preview service interface , Convenient for secondary development , It is very convenient to add other types of file preview support
- Most important Apache Open source agreement , Code pull Come down and do whatever you want
Four 、 Start installation
- Pull the mirror image
docker pull keking/kkfileview
function
docker run -it -p 8012:8012 keking/kkfileview
Browser access container 8012 port (http://xxx.xxx.xxx.xxx:8012 ) You can see the project demo with the home page
5、 ... and 、 Reverse generation configuration
After the above installation is completed, if you want to use the domain name to access, we need to perform reverse generation configuration
First add a new site , As configured below
Then click settings - The reverse proxy adding configuration is shown in the following figure
You can then access
If you need to change the configuration, such as enabling https The configuration file needs to be changed application.properties, The file is located in /www/server/docker/overlay2
To search
Open the file and change the following code
# The address where the preview service is provided , Default slave request url read , If you use nginx And so on , Manual setting required base.url = https://view.gx3.cn
At this point, as long as you set the website's SSL It can be used normally
Please check the documentation for other configurations
https://gitee.com/kekingcn/file-online-preview/wikis/pages?sort_id=1444366&doc_id=106093
边栏推荐
- What are the operation and maintenance advantages of Fortress machine web application publishing server? Two outstanding advantages
- The article "essence" introduces you to VMware vSphere network, vswitch and port group!
- H265 enables mobile phone screen projection
- Heat transfer oil electric heater
- How to use xshell to log in to the server through the fortress machine? How does the fortress machine configure the tunnel?
- Slsa: accelerator for successful SBOM
- Role of API service gateway benefits of independent API gateway
- Flutter Utils
- What are the application flow restrictions of API gateway framework?
- Talk about the problems and solutions of IT enterprise fixed assets management system
猜你喜欢

【技术干货】蚂蚁办公零信任的技术建设路线与特点

蚂蚁集团自研TEE技术通过国家级金融科技产品认证

Ant group's self-developed tee technology has passed the national financial technology product certification
Mysql中的触发器定义及语法介绍

专业“搬砖”老司机总结的 12 条 SQL 优化方案,非常实用!

Section 29 basic configuration case of Tianrongxin topgate firewall

The technical design and practice of decrypting the red envelopes of Tiktok Spring Festival

Game security - call analysis - write code

脚本之美│VBS 入门交互实战

应用实践 | Apache Doris 整合 Iceberg + Flink CDC 构建实时湖仓一体的联邦查询分析架构
随机推荐
How to use xshell to log in to the server through the fortress machine? How does the fortress machine configure the tunnel?
Discussion: will low code integrated oa/erp/mes system be an important part of enterprise application ecology?
Detailed explanation of bitmap optimization
How to set the website construction title bar drop-down
Log4j has been exposed to a nuclear bomb level vulnerability, and the developer has fried the pot!
How to set the text style as PG in website construction
[technical dry goods] the technical construction route and characteristics of zero trust in ant Office
Achieve scoring (Star scoring) effect through native JS
MySQL数据库配置信息查看与修改方法详解
应用实践 | Apache Doris 整合 Iceberg + Flink CDC 构建实时湖仓一体的联邦查询分析架构
Understand the data consistency between MySQL and redis
H265 enables mobile phone screen projection
Server classification of hardware knowledge (2)
解密抖音春节红包背后的技术设计与实践
Mysql中的触发器定义及语法介绍
[tcapulusdb knowledge base] update data example (TDR table)
[tcapulusdb knowledge base] example of deleting data (TDR table)
openGauss Developer Day 2022正式开启,与开发者共建开源数据库根社区
Grpc: quickly configure the general API to obtain process meta information
Three ways to enable IPv6 on Tencent cloud