First public version

This commit is contained in:
Oleg Vasilev
2021-06-03 16:51:46 +03:00
parent 78569d4ca2
commit bf0fe49b4b
5 changed files with 119 additions and 2 deletions

36
templates/nginx.conf.j2 Normal file
View 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;
}