|
| 1 | +--- |
| 2 | +sidebar_position: 20 |
| 3 | +id: collabora-ms-office-formats |
| 4 | +title: Enable MS-Office formats |
| 5 | +description: How to enable MS-Office formats |
| 6 | +draft: false |
| 7 | +--- |
| 8 | + |
| 9 | +## Enable Microsoft file formats in the New menu |
| 10 | + |
| 11 | +:::note |
| 12 | +Starting with version 5.2.0, OpenCloud no longer enables Microsoft file formats as default creation options in the New menu. To make them available again, you must define them explicitly in `app-registry.yaml`. |
| 13 | +::: |
| 14 | + |
| 15 | +### Create the configuration file |
| 16 | + |
| 17 | +Create an `app-registry.yaml` file in your OpenCloud configuration directory. |
| 18 | + |
| 19 | +This change cannot be applied in setups that use internal Docker volumes only, because the config directory is not available directly on the host. |
| 20 | + |
| 21 | +For production deployments, bind-mounted volumes are recommended, as they provide a predictable host path for configuration, persistence, and backups. |
| 22 | + |
| 23 | +If your deployment uses a bind mount for the OpenCloud config directory, place the file in the mapped config directory on the host system. The exact path depends on your Docker Compose setup and may differ from `config/opencloud`. |
| 24 | + |
| 25 | +Example: |
| 26 | + |
| 27 | +````bash |
| 28 | +/path/to/your/opencloud/config/app-registry.yaml |
| 29 | + |
| 30 | +Insert following content: |
| 31 | + |
| 32 | +```yaml |
| 33 | +app_registry: |
| 34 | + mimetypes: |
| 35 | + - mime_type: application/pdf |
| 36 | + extension: pdf |
| 37 | + name: PDF |
| 38 | + description: PDF document |
| 39 | + icon: '' |
| 40 | + default_app: '' |
| 41 | + allow_creation: false |
| 42 | + - mime_type: application/vnd.oasis.opendocument.text |
| 43 | + extension: odt |
| 44 | + name: Document |
| 45 | + description: OpenDocument text document |
| 46 | + icon: '' |
| 47 | + default_app: Collabora |
| 48 | + allow_creation: true |
| 49 | + - mime_type: application/vnd.oasis.opendocument.spreadsheet |
| 50 | + extension: ods |
| 51 | + name: Spreadsheet |
| 52 | + description: OpenDocument spreadsheet document |
| 53 | + icon: '' |
| 54 | + default_app: Collabora |
| 55 | + allow_creation: true |
| 56 | + - mime_type: application/vnd.oasis.opendocument.presentation |
| 57 | + extension: odp |
| 58 | + name: Presentation |
| 59 | + description: OpenDocument presentation document |
| 60 | + icon: '' |
| 61 | + default_app: Collabora |
| 62 | + allow_creation: true |
| 63 | + - mime_type: application/vnd.openxmlformats-officedocument.wordprocessingml.document |
| 64 | + extension: docx |
| 65 | + name: Microsoft Word |
| 66 | + description: Microsoft Word document |
| 67 | + icon: '' |
| 68 | + default_app: Collabora |
| 69 | + allow_creation: true |
| 70 | + - mime_type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet |
| 71 | + extension: xlsx |
| 72 | + name: Microsoft Excel |
| 73 | + description: Microsoft Excel document |
| 74 | + icon: '' |
| 75 | + default_app: Collabora |
| 76 | + allow_creation: true |
| 77 | + - mime_type: application/vnd.openxmlformats-officedocument.presentationml.presentation |
| 78 | + extension: pptx |
| 79 | + name: Microsoft PowerPoint |
| 80 | + description: Microsoft PowerPoint document |
| 81 | + icon: '' |
| 82 | + default_app: Collabora |
| 83 | + allow_creation: true |
| 84 | +```` |
| 85 | +
|
| 86 | +### Verify ownership and permissions |
| 87 | +
|
| 88 | +:::important UID/GID and volume permissions |
| 89 | +Make sure that `app-registry.yaml` can be read by the user running the OpenCloud container. Incorrect ownership or permissions on mounted files can prevent OpenCloud from using the configuration. |
| 90 | +::: |
| 91 | +
|
| 92 | +By default, OpenCloud uses: |
| 93 | +
|
| 94 | +```bash |
| 95 | +UID=1000 |
| 96 | +GID=1000 |
| 97 | +``` |
| 98 | + |
| 99 | +Adjust the file ownership and permissions if your container runs with different values. |
| 100 | + |
| 101 | +### Restart OpenCloud |
| 102 | + |
| 103 | +Restart your deployment after creating the file: |
| 104 | + |
| 105 | +```bash |
| 106 | +docker compose down |
| 107 | +docker compose up -d |
| 108 | +``` |
| 109 | + |
| 110 | +After the restart, Microsoft formats such as Word, Excel, and PowerPoint are available again in the New menu. |
0 commit comments