First public version
This commit is contained in:
36
templates/nginx.conf.j2
Normal file
36
templates/nginx.conf.j2
Normal file
@@ -0,0 +1,36 @@
|
||||
# {{ ansible_managed }}
|
||||
user http;
|
||||
worker_processes auto;
|
||||
|
||||
error_log /var/log/nginx/error.log;
|
||||
#error_log logs/error.log notice;
|
||||
#error_log logs/error.log info;
|
||||
|
||||
# Specified in systemd unit file
|
||||
#pid /run/nginx.pid;
|
||||
|
||||
events {
|
||||
worker_connections 512;
|
||||
}
|
||||
|
||||
http {
|
||||
include mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
sendfile on;
|
||||
tcp_nopush on;
|
||||
keepalive_timeout 65;
|
||||
gzip on;
|
||||
|
||||
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;
|
||||
|
||||
types_hash_bucket_size 128;
|
||||
|
||||
client_max_body_size 512m;
|
||||
|
||||
include vhosts/*.conf;
|
||||
}
|
Reference in New Issue
Block a user