問題
- 場合によっては、doc、docx、xls などの「Office」ファイルのプレビューを生成する必要があります。これを実現するには、Liferay を OpenOffice/LibreOffice と統合する必要があります。
- Liferay PaaSプロジェクトでこの統合はどのように実現できますか?
環境
- Liferay PaaS
解決
- LibreOffice を Liferay PaaS と統合するには、新しいカスタムサービスを作成することをお勧めします:
-
新しいサービスの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
}
]
}