当前位置:网站首页>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 !

https://cloud.tencent.com/act/cps/redirect?redirect=1079&cps_key=260eead3f475757251b1004d6dfca68f&from=console

2. pagoda

  1. 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

  1. Support office, pdf, cad And other office documents
  2. Support txt, xml( Rendering ), md( Rendering ), java, php, py, js, css And all the plain text
  3. Support zip, rar, jar, tar, gzip Compression package, etc
  4. Support jpg, jpeg, png, gif, tif, tiff Wait for the picture preview ( Flip , The zoom , Mirror image )
  5. Use spring-boot Development , The preview service setup and deployment is very simple
  6. rest Interface provides services , Cross language 、 Cross-platform feature (java,php,python,go,php,….) All support , Application access is simple and convenient
  7. Abstract preview service interface , Convenient for secondary development , It is very convenient to add other types of file preview support
  8. Most important Apache Open source agreement , Code pull Come down and do whatever you want

Four 、 Start installation

  1. 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

原网站

版权声明
本文为[Mr. Chen 1998]所创,转载请带上原文链接,感谢
https://yzsam.com/2021/12/20211209214438189o.html