Event OCA Days 2025 - Liège starts on September 15, 2025 at 8:30:00 AM +0200
Efficiently serve documents and static assets in a cloud deployment
Set Favorite
(30 minutes)

Efficiently serve documents and static assets in a cloud deployment
Stéphane Bidoul CTO  at Acsone SA/NV stephane.bidoul@acsone.eu +32 2 888 31 20

Stéphane is a software engineer at ACSONE, long-time OCA contributor and maintainer..


One of the characteristics of Odoo is that it is quite easy to deploy in simple low-to-medium workload environments. For more performance-sensitive environments, the Odoo deployment guidelines provide guidance on how to improve performance serving static files and large documents by offloading some work to the reverse proxy.

In a cloud environment where Odoo is containerized and documents are located in object storage, these recommendations are not straightforward to implement.

In this talk, we will recap how to use the OCA fs_attachment module to store attachments in a private S3 bucket. We will then illustrate how a kubernetes deployment with a nginx ingress can be configured to offload the serving of such documents to the ingress reverse proxy. As a bonus, we will also illustrate how static assets can be served efficiently without involving the precious Odoo worker resources.

While kubernetes and S3 will be used as an example, the lessons learned can be applied to other containerized cloud deployments.