Skip to content

Commit b081ea9

Browse files
committed
Add doc for upload size limit
1 parent 29f8b07 commit b081ea9

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,43 @@ You can further customize `config.inc.php`. Please follow these instructions:
7575
1. Customize your configuration file.
7676
1. Provide your customized file back into the `/var/www/html` by using a volume mapping.
7777

78+
# Increase Upload size for attachments
79+
The attachment size is controlled by the PHP configuration. The file must be placed in `/usr/local/etc/php/conf.d/`:
80+
81+
```
82+
upload_max_filesize = 20M
83+
post_max_size = 20M
84+
```
85+
86+
For Kubernetes using the HELM chart, create the following ConfigMap:
87+
88+
```
89+
apiVersion: v1
90+
kind: ConfigMap
91+
metadata:
92+
name: mailserver-roundcube-upload
93+
data:
94+
upload.ini: |-
95+
upload_max_filesize = 10M
96+
post_max_size = 10M
97+
```
98+
99+
Add the following lines to your HELM values.yaml file:
100+
101+
```
102+
additionalContainerSpec:
103+
volumeMounts:
104+
- mountPath: /usr/local/etc/php/conf.d/upload.ini
105+
name: roundcube-upload-config
106+
subPath: upload.ini
107+
additionalPodSpec:
108+
volumes:
109+
- name: roundcube-upload-config
110+
configMap:
111+
name: mailserver-roundcube-upload
112+
```
113+
114+
78115
# Issues
79116
This Docker image is mature and supports my own mailserver in production. There are no known issues at the moment.
80117

0 commit comments

Comments
 (0)