legacy-knowledge-base
公開されました Jun. 30, 2025

Liferay PaaSとOpenOffice/LibreOfficeの統合

written-by

Jamilly Macedo

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text
注:Liferay は、Liferay Experience Could オファリングの名称を次のように変更しました。 Liferay SaaS(旧 LXC) と Liferay PaaS(旧 LXC-SM)となりました。

問題

  • 場合によっては、doc、docx、xls などの「Office」ファイルのプレビューを生成する必要があります。これを実現するには、Liferay を OpenOffice/LibreOffice と統合する必要があります。
  • Liferay PaaSプロジェクトでこの統合はどのように実現できますか?

環境

  • Liferay PaaS

解決

  • LibreOffice を Liferay PaaS と統合するには、新しいカスタムサービスを作成することをお勧めします:

image.png

  • 新しいサービスのLCP.jsonの例です:

{
"id": "libreoffice",
"image": "[your_trusted_image]/libreoffice-api",
"cpu": 1,
"memory": 512,
"scale": 1,
"kind": "Deployment",
"dependencies": [],
"readinessProbe": {
"timeoutSeconds": 5,
"tcpSocket": {
"port": 8100
},
"initialDelaySeconds": 20,
"failureThreshold": 5
},
"livenessProbe": {
"timeoutSeconds": 10,
"tcpSocket": {
"port": 8100
},
"initialDelaySeconds": 60,
"failureThreshold": 3
},
"loadBalancer": {
"defaultBackend": false,
"cdn": false,
"customDomains": []
},
"ports": [
{
"protocol": "TCP",
"port": 8100,
"targetPort": 8100,
"external": false
}
]
}

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base