mirror of
https://github.com/kemko/frontend-nginx-role.git
synced 2026-01-01 15:45:43 +03:00
Дефолтный конфиг nginx, важные настройки вынесены в переменные
This commit is contained in:
33
templates/nginx.conf.j2
Normal file
33
templates/nginx.conf.j2
Normal file
@@ -0,0 +1,33 @@
|
||||
{{ ansible_managed | comment }}
|
||||
|
||||
user nginx;
|
||||
worker_processes {{ nginx_worker_processes }};
|
||||
|
||||
error_log /var/log/nginx/error.log warn;
|
||||
pid /var/run/nginx.pid;
|
||||
|
||||
|
||||
events {
|
||||
worker_connections {{ nginx_worker_connections }};
|
||||
}
|
||||
|
||||
|
||||
http {
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||
'$status $body_bytes_sent "$http_referer" '
|
||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||
|
||||
access_log /var/log/nginx/access.log main;
|
||||
|
||||
sendfile on;
|
||||
#tcp_nopush on;
|
||||
|
||||
keepalive_timeout {{nginx_keepalive_timeout}};
|
||||
|
||||
#gzip on;
|
||||
|
||||
include /etc/nginx/conf.d/*.conf;
|
||||
}
|
||||
Reference in New Issue
Block a user