adjust main setting
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
server_name "";
|
server_name "";
|
||||||
|
|
||||||
root /home/container/webroot;
|
root /home/container/webroot;
|
||||||
@@ -14,7 +16,7 @@ server {
|
|||||||
location = /robots.txt { access_log off; log_not_found off; }
|
location = /robots.txt { access_log off; log_not_found off; }
|
||||||
|
|
||||||
# allow larger file uploads and longer script runtimes
|
# allow larger file uploads and longer script runtimes
|
||||||
client_max_body_size 100m;
|
client_max_body_size 0;
|
||||||
client_body_timeout 120s;
|
client_body_timeout 120s;
|
||||||
|
|
||||||
sendfile off;
|
sendfile off;
|
||||||
@@ -24,7 +26,7 @@ server {
|
|||||||
fastcgi_pass unix:/tmp/php-fpm.sock;
|
fastcgi_pass unix:/tmp/php-fpm.sock;
|
||||||
fastcgi_index index.php;
|
fastcgi_index index.php;
|
||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
fastcgi_param PHP_VALUE "upload_max_filesize = 100M \n post_max_size=100M";
|
fastcgi_param PHP_VALUE "upload_max_filesize = 1024M \n post_max_size=1024M";
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||||
fastcgi_param HTTP_PROXY "";
|
fastcgi_param HTTP_PROXY "";
|
||||||
fastcgi_intercept_errors off;
|
fastcgi_intercept_errors off;
|
||||||
|
|||||||
@@ -26,12 +26,9 @@ http {
|
|||||||
uwsgi_temp_path /tmp;
|
uwsgi_temp_path /tmp;
|
||||||
scgi_temp_path /tmp;
|
scgi_temp_path /tmp;
|
||||||
|
|
||||||
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
|
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
||||||
ssl_prefer_server_ciphers on;
|
ssl_prefer_server_ciphers on;
|
||||||
|
|
||||||
#ssl_certificate /path/to/your/key/fullchain.pem;
|
|
||||||
#ssl_certificate_key /path/to/your/key/privkey.pem;
|
|
||||||
|
|
||||||
access_log /home/container/access.log;
|
access_log /home/container/access.log;
|
||||||
access_log /dev/stdout;
|
access_log /dev/stdout;
|
||||||
error_log /home/container/error.log;
|
error_log /home/container/error.log;
|
||||||
|
|||||||
Reference in New Issue
Block a user