Skip to content
Snippets Groups Projects
Unverified Commit ca2db5dd authored by Mateusz Przybyłowicz's avatar Mateusz Przybyłowicz Committed by GitHub
Browse files

Increase default max_upload_size from 10M to 50M (#8502)

parent 1781bbe3
No related branches found
No related tags found
No related merge requests found
Increase default upload size limit from 10M to 50M. Contributed by @Akkowicz.
...@@ -90,7 +90,7 @@ federation_rc_concurrent: 3 ...@@ -90,7 +90,7 @@ federation_rc_concurrent: 3
media_store_path: "/data/media" media_store_path: "/data/media"
uploads_path: "/data/uploads" uploads_path: "/data/uploads"
max_upload_size: "{{ SYNAPSE_MAX_UPLOAD_SIZE or "10M" }}" max_upload_size: "{{ SYNAPSE_MAX_UPLOAD_SIZE or "50M" }}"
max_image_pixels: "32M" max_image_pixels: "32M"
dynamic_thumbnails: false dynamic_thumbnails: false
......
...@@ -54,7 +54,7 @@ server { ...@@ -54,7 +54,7 @@ server {
proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-For $remote_addr;
# Nginx by default only allows file uploads up to 1M in size # Nginx by default only allows file uploads up to 1M in size
# Increase client_max_body_size to match max_upload_size defined in homeserver.yaml # Increase client_max_body_size to match max_upload_size defined in homeserver.yaml
client_max_body_size 10M; client_max_body_size 50M;
} }
} }
``` ```
......
...@@ -893,7 +893,7 @@ media_store_path: "DATADIR/media_store" ...@@ -893,7 +893,7 @@ media_store_path: "DATADIR/media_store"
# The largest allowed upload size in bytes # The largest allowed upload size in bytes
# #
#max_upload_size: 10M #max_upload_size: 50M
# Maximum number of pixels that will be thumbnailed # Maximum number of pixels that will be thumbnailed
# #
......
...@@ -100,7 +100,7 @@ class ContentRepositoryConfig(Config): ...@@ -100,7 +100,7 @@ class ContentRepositoryConfig(Config):
"media_instance_running_background_jobs", "media_instance_running_background_jobs",
) )
self.max_upload_size = self.parse_size(config.get("max_upload_size", "10M")) self.max_upload_size = self.parse_size(config.get("max_upload_size", "50M"))
self.max_image_pixels = self.parse_size(config.get("max_image_pixels", "32M")) self.max_image_pixels = self.parse_size(config.get("max_image_pixels", "32M"))
self.max_spider_size = self.parse_size(config.get("max_spider_size", "10M")) self.max_spider_size = self.parse_size(config.get("max_spider_size", "10M"))
...@@ -242,7 +242,7 @@ class ContentRepositoryConfig(Config): ...@@ -242,7 +242,7 @@ class ContentRepositoryConfig(Config):
# The largest allowed upload size in bytes # The largest allowed upload size in bytes
# #
#max_upload_size: 10M #max_upload_size: 50M
# Maximum number of pixels that will be thumbnailed # Maximum number of pixels that will be thumbnailed
# #
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment