Fix the nginx config.
This commit is contained in:
parent
2f86c13c08
commit
3f2d3a783c
2 changed files with 5 additions and 3 deletions
|
@ -35,11 +35,13 @@ http {
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
|
listen 80 default_server;
|
||||||
server_name _;
|
server_name _;
|
||||||
rewrite ^ https://$host$request_uri? permanent;
|
rewrite ^ https://$host$request_uri? permanent;
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
|
listen 443 default;
|
||||||
client_max_body_size 8G;
|
client_max_body_size 8G;
|
||||||
client_body_temp_path /mnt/nginx/client_body 1 2;
|
client_body_temp_path /mnt/nginx/client_body 1 2;
|
||||||
server_name _;
|
server_name _;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
worker_processes 8;
|
worker_processes 8;
|
||||||
|
|
||||||
user nobody nogroup;
|
user nobody nogroup;
|
||||||
pid /tmp/nginx.pid;
|
pid /mnt/nginx/nginx.pid;
|
||||||
error_log /tmp/nginx.error.log;
|
error_log /mnt/nginx/nginx.error.log;
|
||||||
|
|
||||||
events {
|
events {
|
||||||
worker_connections 1024;
|
worker_connections 1024;
|
||||||
|
@ -14,7 +14,7 @@ http {
|
||||||
include /usr/local/nginx/conf/mime.types.default;
|
include /usr/local/nginx/conf/mime.types.default;
|
||||||
|
|
||||||
default_type application/octet-stream;
|
default_type application/octet-stream;
|
||||||
access_log /tmp/nginx.access.log combined;
|
access_log /mnt/nginx/nginx.access.log combined;
|
||||||
sendfile on;
|
sendfile on;
|
||||||
|
|
||||||
gzip on;
|
gzip on;
|
||||||
|
|
Reference in a new issue