php POST max size and custom HTTPS cert

This commit is contained in:
bunkerity
2020-08-01 15:55:52 +02:00
parent 1d6ab7275f
commit 76bd069f25
6 changed files with 49 additions and 9 deletions

7
confs/custom-https.conf Normal file
View File

@@ -0,0 +1,7 @@
listen 0.0.0.0:443 ssl %HTTP2%;
ssl_certificate %HTTPS_CUSTOM_CERT%;
ssl_certificate_key %HTTPS_CUSTOM_KEY%;
ssl_protocols TLSv1.3;
ssl_prefer_server_ciphers off;
ssl_session_tickets off;
%STRICT_TRANSPORT_SECURITY%

View File

@@ -691,7 +691,7 @@ auto_globals_jit = On
; Its value may be 0 to disable the limit. It is ignored if POST data reading
; is disabled through enable_post_data_reading.
; http://php.net/post-max-size
post_max_size = 8M
post_max_size = %PHP_POST_MAX_SIZE%
; Automatically add files before PHP document.
; http://php.net/auto-prepend-file

View File

@@ -1,6 +1,7 @@
server {
%LISTEN_HTTP%
%AUTO_LETS_ENCRYPT%
%CUSTOM_HTTPS%
%REDIRECT_HTTP_TO_HTTPS%
server_name %SERVER_NAME%;
%DISABLE_DEFAULT_SERVER%