onlyoffice啟用HTTPS

原文同步自作者博客:https://www.daxueyiwu.com/post/765

HTTPS需要使用SSL證書,可以自己簽發也可以用ca機構簽發的,加密效果相同。

生成證書:

  1. 創建私鑰
    openssl genrsa -out onlyoffice.key 2048
  2. 創建CSR
    openssl req -new -key onlyoffice.key -out onlyoffice.csr
  3. 用私枂和CSR簽發證書
    openssl x509 -req -days 365 -in onlyoffice.csr -signkey onlyoffice.key -out onlyoffice.crt
  4. 用dhparam加密服務器密鑰
    openssl dhparam -out dhparam.pem 2048

完成證書的生成后,將生成的證書拷貝到

/app/onlyoffice/DocumentServer/data/certs

?目錄下。

創建相應目錄:

mkdir -p /app/onlyoffice/DocumentServer/data/certs

復制證書到

/app/onlyoffice/DocumentServer/data/certs

目錄并設置權限:

cp onlyoffice.key /app/onlyoffice/DocumentServer/data/certs/
cp onlyoffice.crt /app/onlyoffice/DocumentServer/data/certs/
cp dhparam.pem /app/onlyoffice/DocumentServer/data/certs/
chmod 400 /app/onlyoffice/DocumentServer/data/certs/onlyoffice.key

運行容器,映射容器的443端口和Data目錄至本地:

sudo docker run -i -t -d -p 443:443 \ -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data onlyoffice/documentserver

在瀏覽器里訪問https://服務器地址/。(CentOS/RHEL/Fedora系統可能無法訪問,請往下看)

當然了,如果本地443端口已經被占用了的話,可以映射至其它端口:

sudo docker run -i -t -d -p 9000:443 \ -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data onlyoffice/documentserver

但是仍然是要用HTTPS協議訪問,比如:https://服務器地址:9000/

CentOS/RHEL/Fedora無法訪問

這是由于SELinux的阻止。

暫時關閉SELinux(重啟后失效):

setenforce 0

參考:

https://blog.csdn.net/qq_33468857/article/details/85333593

https://hub.docker.com/r/onlyoffice/documentserver

有需要可以加群交流:點擊鏈接加入群聊【onlyoffice交流群】:https://jq.qq.com/?_wv=1027&k=ozgBiZts

1群將滿可加2群【onlyoffice交流群2】:https://jq.qq.com/?_wv=1027&k=2uSJJPfr

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/281117.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/281117.shtml
英文地址,請注明出處:http://en.pswp.cn/news/281117.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

Oracle-邏輯體系結構

這里指數據文件的邏輯體系結構,包括1.表空間(TABLESPACE) 2.段(SEGMENT) 3.區(EXTENT) 4.塊(BLOCK) 數據庫(Database)由若干表空間(TABLESPACE)組成,表空間由若干段(SEGMENT)組成,段由若干區(EXTENT)組成,區由若干塊(BLOCK)組成…

win10下用docker安裝onlyoffice服務

原文同步自作者博客:https://www.daxueyiwu.com/post/699 1. 使用DockerToolbox安裝docker 1.1 DockerToolbox下載地址 DockerToolbox-19.03.1 GitHub上下載實在是太慢了。 我找了好久終于下載下來了,在這里分享一下! 網盤下載&#xff1…

chromebook刷機_如何從Chromebook上的APK側面加載Android應用

chromebook刷機Chromebooks can now download and install Android apps from Google Play, and it works pretty well. But not every Android app is available in Google Play. Some apps are available from outside Google Play as APK files, and you can install them o…

速度和性能狂卷,.NET 7來了

.NET 作為一個免費的跨平臺開放源代碼開發人員平臺,這些年在不斷的升級完善。就在最近,史上最快最強的.net平臺.NET 7于2022年11月8日正式發布, .NET 朝著更好的???邁進了?步!那么,.NET 7 有什么新東西?.NET 7 建立…

前端JavaScript規范

摘要: JavaScript規范 目錄 類型 對象 數組 字符串 函數 屬性 變量 條件表達式和等號 塊 注釋 空白 逗號 分號 類型轉換 命名約定 存取器 構造器 事件 模塊 jQuery ES5 兼容性 HTML、CSS、JavaScript分離 使用jsHint 前端工具 類型 原始值: 相當于傳值(JavaScript對…

修改onlyoffice存儲為手動存儲關閉瀏覽器時不進行保存

原文同步自作者博客:https://www.daxueyiwu.com/post/704 相關官方API地址: 文件保存 回調處理程序 配置-編輯-定制-自動保存 配置-編輯-定制-forcesave 需要將: config.editorConfig.customization.forcesave改為true, 并且config.editorConfig.…

如何使用NVIDIA ShadowPlay錄制PC游戲

NVIDIA’s ShadowPlay, now known as NVIDIA Share, offers easy gameplay recording, live streaming, and even an FPS counter overlay. It can automatically record gameplay in the background–just on the PlayStation 4 and Xbox One–or only record gameplay when y…

.Net 7 的 R2R,Crossgen2是什么?

楔子來下這些概念R22,Crossgen2這兩個東西,跟前面講的AOT和CLR有異曲同工之妙,到底什么呢?本篇來看下。R2RR2R(ReadyToRun),是一種結合了AOT和CLR編譯模式,取其優點,拋其缺點的一種編譯方式。具體的呢,R2R包…

Java流

流分類 字節流字符流輸入流InputStreamReader輸出流OutputStream WriterInputStream:BufferedInputStream、DataInputStream、ObjectInputStreamOutputStream:BufferedOutputStream、DataOutputStream、ObjectOutputStream、PrintStream 標準流: System.in 、Syst…

Win7安裝OnlyOffice(不使用Docker)

原文同步自作者博客:https://www.daxueyiwu.com/post/741 1、安裝準備 (1)安裝Elang: 【注意事項】 a)Elang是為了給RabbitMQ使用的,因此在安裝Elang之前應確定RabbitMQ的版本及其所需的Elang版本。RabbitMQ的地址…

geek_享受How-To Geek用戶樣式腳本的好處

geekMost people may not be aware of it but there are two user style scripts that have been created just for use with the How-To Geek website. If you are curious then join us as we look at these two scripts at work. 大多數人可能不知道它,但是已經創…

.NET Core統一參數校驗、異常處理、結果返回

我們開發接口時,一般都會涉及到參數校驗、異常處理、封裝結果返回等處理。如果每個后端開發在參數校驗、異常處理等都是各寫各的,沒有統一處理的話,代碼就不優雅,也不容易維護。所以,我們需要統一校驗參數,…

Memcached 在linux上安裝筆記

第一種yum 方式安裝 Memcached 支持許多平臺:Linux、FreeBSD、Solaris、Mac OS,也可以安裝在Windows上。 第一步 Linux系統安裝memcached,首先要先安裝libevent庫 Ubuntu/Debian sudo apt-get install libevent libevent-deve 自動下…

onlyoffice回調函數controller方式實現

原文同步自作者博客:https://www.daxueyiwu.com/post/706 springboot實現的onlyoffice協同編輯網盤項目可以去作者博客。 上代碼: //新建報告GetMapping("report/createReport")public String CreatReport(HttpServletRequest request,Stri…

讀Bilgin Ibryam 新作 《Dapr 是一種10倍數 平臺》

Bilgin Ibryam 最近加入了開發者軟件初創公司Diagrid Inc,他是Apache Software Foundation 的 committer 和成員。他也是一個開源的布道師,并且是書籍 Kubernetes設計模式 和 Camel Design Patterns 的作者。早在2020年初 提出的Multi-Runtime Microserv…

如何在iPhone或iPad上使用Safari下載文件

Khamosh PathakKhamosh PathakIn your work or personal life, you’ll sometimes need to download a file on your iPhone or iPad. Using the new feature introduced in iOS 13 and iPadOS 13, you can now do this directly in Safari. No third-party app needed! 在工作…

java版左右手桌面盯盤軟件dstock V1.0

V1.0功能比較簡陋,先滿足自己桌面盯盤需要 V1.0 版本功能介紹: 1. 1s實時刷新盯盤數據 主要市面上的,符合我要求的桌面應用要VIP,窮啊,還是月月付,年年付,還是自己搞吧! 2. 配置文件配置股票…

放大倍數超5萬倍的Memcached DDoS反射攻擊,怎么破?

歡迎大家前往騰訊云社區,獲取更多騰訊海量技術實踐干貨哦~ 作者:騰訊游戲云 背景:Memcached攻擊創造DDoS攻擊流量紀錄 近日,利用Memcached服務器實施反射DDoS攻擊的事件呈大幅上升趨勢。DDoS攻擊流量首次過T,引發業界熱…

C# WPF TabControl控件用法詳解

概述TabControl我之前有講過一節,內容詳見:C# WPF TabControl用法指南(精品),上節主要講解了tabcontrol控件的左右翻頁,以及頁面篩選,以及數據綁定等內容,這節內容繼續接續上節內容進行擴展講解&#xff0c…

pixel 解鎖_如何在Google Pixel 4和Pixel 4 XL上禁用面部解鎖

pixel 解鎖Justin Duino賈斯汀杜伊諾(Justin Duino)Face Unlock is one of the Google Pixel 4 and Pixel 4 XL’s flagship features. But if the facial recognition is a form of biometric security you’re uncomfortable with, you can delete your face data right off …