-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathnginx.dist.ngx
72 lines (67 loc) · 3.31 KB
/
nginx.dist.ngx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#! ---------------------------------------------------------------------------------------------------------------------
# This file is part of fleshgrinder/nginx-configuration.
#
# fleshgrinder/nginx-configuration is free software: you can redistribute it and/or modify it under the terms of the GNU
# Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at
# your option) any later version.
#
# fleshgrinder/nginx-configuration is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
# License for more details.
#
# You should have received a copy of the GNU Affero General Public License along with fleshgrinder/nginx-configuration.
# If not, see <https://www.gnu.org/licenses/agpl-3.0.html>.
# ----------------------------------------------------------------------------------------------------------------------
# ----------------------------------------------------------------------------------------------------------------------
# Main nginx configuration.
#
# Please create a copy of this file at `/nginx.conf` and perform your changes there.
#
# @author Richard Fussenegger <[email protected]>
# @copyright 2015 (c) Richard Fussenegger
# @license https://www.gnu.org/licenses/agpl-3.0.html AGPLv3
# ----------------------------------------------------------------------------------------------------------------------
pcre_jit on;
timer_resolution 1s;
worker_processes auto;
worker_priority 15;
worker_rlimit_core 0;
worker_rlimit_nofile 262144;
events {
accept_mutex off;
accept_mutex_delay 50ms;
multi_accept on;
worker_connections 131072;
}
http {
charset utf-8;
client_body_timeout 3s;
client_header_timeout 3s;
client_max_body_size 16m;
default_type application/octet-stream;
directio 1m;
ignore_invalid_headers on;
include includes/gzip.ngx;
include includes/headers.ngx;
include includes/https.ngx;
include includes/mime-types.ngx;
index index.html index.htm;
keepalive_disable none;
keepalive_requests 50;
keepalive_timeout 120s;
max_ranges 0;
msie_padding off;
output_buffers 1 512k; # Should match read_ahead.
postpone_output 1460;
read_ahead 512k; # Should match output_buffers.
recursive_error_pages on;
reset_timedout_connection on;
send_timeout 9s;
server_name_in_redirect off;
server_names_hash_bucket_size 64;
server_tokens off;
types_hash_max_size 2048;
uninitialized_variable_warn off;
include sites/*.ngx;
include sites/*/*.ngx;
}