当前位置:网站首页>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
边栏推荐
- How to set the protective strip in the barcode
- 脚本之美│VBS 入门交互实战
- Achieve scoring (Star scoring) effect through native JS
- How to use FTP to upload websites to the web
- Why is only one value displayed on your data graph?
- Understand the data consistency between MySQL and redis
- Log4j has been exposed to a nuclear bomb level vulnerability, and the developer has fried the pot!
- Tencent News's practice based on Flink pipeline model
- Docker中部署Redis集群与部署微服务项目的详细过程
- 2022年性价比高的商业养老保险产品排名
猜你喜欢

混沌工程,了解一下

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

In the eyes of the universe, how to correctly care about counting East and West?

Pourquoi une seule valeur apparaît - elle sur votre carte de données?

Section 29 basic configuration case of Tianrongxin topgate firewall

Application practice | Apache Doris integrates iceberg + Flink CDC to build a real-time federated query and analysis architecture integrating lake and warehouse
PostgreSQL怎么创建分区表详解

Opengauss Developer Day 2022 was officially launched to build an open source database root community with developers

Why is only one value displayed on your data graph?

解密抖音春节红包背后的技术设计与实践
随机推荐
Detailed explanation of flutter exception capture
How to lossless publish API gateway why do you need API gateway?
Grpc: quickly configure the general API to obtain process meta information
SAP mm initial service purchase order
How to set the text style as PG in website construction
為什麼你的數據圖譜分析圖上只顯示一個值?
How to set dynamic background for website construction what are the benefits of dynamic background
2021-12-10: which can represent a 64 bit floating point number or a 64 bit signed integer
How to set the protective strip in the barcode
PHPMailer 发送邮件 PHP
Achieve scoring (Star scoring) effect through native JS
5 minutes to explain what is redis?
Section 30 high availability (HA) configuration case of Tianrongxin topgate firewall
Problems and solutions of MacOS installation go SQLite3
Targeted, real-time audio and video optimization in remote control
How to access the top-level domain name and automatically jump to the secondary domain name?
Flutter Utils
How to set the website address for website construction can the website be put on record
SQL语句中EXISTS的详细用法大全
Go language core 36 lectures (go language practice and application 25) -- learning notes