nginx: unified indentation character and add additional config entry

The original configure file mixed tab and space
characters as indentation, so use 4 spaces as the
default indentation character.

Add /etc/nginx/conf.d/*.conf as nginx additional configure
files. Then we can add individual conf file for other http
applications without modify the main nginx configure file.

Signed-off-by: James Qian <sotux82@gmail.com>
This commit is contained in:
James Qian
2018-11-20 18:28:16 +08:00
parent 7ec4304904
commit 9803e34512
4 changed files with 62 additions and 58 deletions
+17 -15
View File
@@ -18,32 +18,34 @@ http {
include mime.types;
default_type application/octet-stream;
sendfile on;
sendfile on;
keepalive_timeout 0;
client_body_buffer_size 10K;
client_header_buffer_size 1k;
client_max_body_size 1G;
large_client_header_buffers 2 1k;
client_body_buffer_size 10K;
client_header_buffer_size 1k;
client_max_body_size 1G;
large_client_header_buffers 2 1k;
gzip on;
gzip_http_version 1.1;
gzip_vary on;
gzip_comp_level 1;
gzip_proxied any;
root /www;
root /www;
server {
listen 80 default_server;
listen [::]:80 default_server;
listen [::]:80 default_server;
server_name localhost;
location ~* .(jpg|jpeg|png|gif|ico|css|js)$ {
expires 365d;
}
location ~* .(jpg|jpeg|png|gif|ico|css|js)$ {
expires 365d;
}
include luci_uwsgi.conf;
include luci_uwsgi.conf;
}
}
include /etc/nginx/conf.d/*.conf;
}