2018-01-07 15:30:12 +00:00
|
|
|
|
user {{ data.user }};
|
|
|
|
|
pid {{ data.pid}};
|
|
|
|
|
worker_processes {{ data.worker_processes }};
|
|
|
|
|
worker_rlimit_nofile 409600;
|
|
|
|
|
|
|
|
|
|
events {
|
|
|
|
|
worker_connections 4096;
|
|
|
|
|
multi_accept on;
|
|
|
|
|
use epoll;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
http {
|
|
|
|
|
charset utf-8;
|
|
|
|
|
sendfile on;
|
|
|
|
|
tcp_nopush on;
|
|
|
|
|
tcp_nodelay on;
|
|
|
|
|
types_hash_max_size 2048;<span ng-if="!data.server_tokens">
|
|
|
|
|
server_tokens off;</span><span ng-if="!data.log_not_found">
|
|
|
|
|
log_not_found off;</span>
|
|
|
|
|
|
|
|
|
|
client_max_body_size 50M;
|
|
|
|
|
client_body_buffer_size 128k;
|
|
|
|
|
|
|
|
|
|
# mime
|
|
|
|
|
include mime.types;
|
|
|
|
|
default_type application/octet-stream;
|
|
|
|
|
|
|
|
|
|
# logging<span ng-if="data.access_log !== ''">
|
|
|
|
|
access_log {{ data.access_log }};</span>
|
|
|
|
|
error_log {{ data.error_log }} warn;<span ng-if="data.limit_req">
|
|
|
|
|
|
|
|
|
|
# limits
|
|
|
|
|
limit_req_log_level warn;
|
|
|
|
|
limit_req_zone $binary_remote_addr zone=login:10m rate=10r/m;</span>
|
|
|
|
|
|
|
|
|
|
# include configs
|
|
|
|
|
include /etc/nginx/conf.d/*.conf;<span ng-if="data.file_structure === 'separated'">
|
|
|
|
|
include /etc/nginx/sites-enabled/*;</span><span ng-if="data.file_structure === 'unified'">
|
|
|
|
|
|
2018-01-08 01:49:44 +00:00
|
|
|
|
<ng-include ng-include-tabs="1" src="'templates/example.com.conf.html'" sonload="refreshHighlighting()"></ng-include></span>
|
|
|
|
|
}
|