From b5a64717a98a9cfc4a1b2cc856c469782e6243d9 Mon Sep 17 00:00:00 2001 From: Zino Date: Thu, 24 Nov 2022 19:00:29 +0100 Subject: [PATCH] upload_max_filesize --- .htaccess-sample | 10 ++++++++++ nginx-sample.conf | 2 ++ 2 files changed, 12 insertions(+) create mode 100644 .htaccess-sample diff --git a/.htaccess-sample b/.htaccess-sample new file mode 100644 index 0000000..88ba333 --- /dev/null +++ b/.htaccess-sample @@ -0,0 +1,10 @@ +# BEGIN WordPress +# The directives (lines) between "BEGIN WordPress" and "END WordPress" are +# dynamically generated, and should only be modified via WordPress filters. +# Any changes to the directives between these markers will be overwritten. + +# END WordPress +php_value upload_max_filesize 32M +php_value post_max_size 32M +php_value max_execution_time 300 +php_value max_input_time 300 \ No newline at end of file diff --git a/nginx-sample.conf b/nginx-sample.conf index 8481374..f3bf108 100644 --- a/nginx-sample.conf +++ b/nginx-sample.conf @@ -16,6 +16,8 @@ server { deny all; } + client_max_body_size 32m; + location / { try_files $uri $uri/ /index.php?$args; add_header Content-Security-Policy "font-src * data: blob: 'unsafe-inline'; script-src * 'unsafe-inline' 'unsafe-eval'; connect-src * 'unsafe-inline'; img-src * data: blob: 'unsafe-inline'; frame-src *; style-src * 'unsafe-inline';" always;