mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-06-01 16:30:09 +00:00
also compress css and svg files
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
@@ -11,9 +11,9 @@ Listen 8000
|
|||||||
SetHandler "proxy:fcgi://${NEXTCLOUD_HOST}:9000"
|
SetHandler "proxy:fcgi://${NEXTCLOUD_HOST}:9000"
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
|
|
||||||
# Enable Brotli compression for js files
|
# Enable Brotli compression for js, css and svg files - other plain files are compressed by Nextcloud by default
|
||||||
<IfModule mod_brotli.c>
|
<IfModule mod_brotli.c>
|
||||||
AddOutputFilterByType BROTLI_COMPRESS text/javascript application/javascript application/x-javascript
|
AddOutputFilterByType BROTLI_COMPRESS text/javascript application/javascript application/x-javascript text/css image/svg+xml
|
||||||
BrotliCompressionQuality 0
|
BrotliCompressionQuality 0
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ Included are:
|
|||||||
- PHP and web server timeouts set to 3600s, [adjustable](https://github.com/nextcloud/all-in-one#how-to-adjust-the-max-execution-time-for-nextcloud) (important for big file uploads)
|
- PHP and web server timeouts set to 3600s, [adjustable](https://github.com/nextcloud/all-in-one#how-to-adjust-the-max-execution-time-for-nextcloud) (important for big file uploads)
|
||||||
- Defaults to a max of 512 MB RAM per PHP process, [adjustable](https://github.com/nextcloud/all-in-one#how-to-adjust-the-php-memory-limit-for-nextcloud)
|
- Defaults to a max of 512 MB RAM per PHP process, [adjustable](https://github.com/nextcloud/all-in-one#how-to-adjust-the-php-memory-limit-for-nextcloud)
|
||||||
- Automatic TLS included (by using Let's Encrypt)
|
- Automatic TLS included (by using Let's Encrypt)
|
||||||
- Brotli compression enabled by default for javascript files which reduces Nextcloud load times
|
- Brotli compression enabled by default for javascript, css and svg files which reduces Nextcloud load times
|
||||||
- HTTP/2 and HTTP/3 enabled
|
- HTTP/2 and HTTP/3 enabled
|
||||||
- "Pretty URLs" for Nextcloud are enabled by default (removes the index.php from all links)
|
- "Pretty URLs" for Nextcloud are enabled by default (removes the index.php from all links)
|
||||||
- Video previews work out of the box and when Imaginary is enabled, many recent image formats as well!
|
- Video previews work out of the box and when Imaginary is enabled, many recent image formats as well!
|
||||||
|
|||||||
Reference in New Issue
Block a user