From 782e4429c89c6e91cd9aa7e5ba59517a52200dcd Mon Sep 17 00:00:00 2001 From: Martin Michalec Date: Thu, 22 Oct 2026 23:12:08 +0300 Subject: feat: add nginx --- roles/nginx/templates/nginx.conf.j2 | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 roles/nginx/templates/nginx.conf.j2 (limited to 'roles/nginx/templates/nginx.conf.j2') diff --git a/roles/nginx/templates/nginx.conf.j2 b/roles/nginx/templates/nginx.conf.j2 new file mode 100644 index 0000000..110fa02 --- /dev/null +++ b/roles/nginx/templates/nginx.conf.j2 @@ -0,0 +1,33 @@ +# {{ ansible_managed }} +user nginx; +error_log /var/log/nginx/error.log warn; +pid /var/run/nginx/nginx.pid; + +worker_processes auto; +worker_rlimit_nofile 65535; + +events { + worker_connections 4096; + use epoll; + multi_accept on; +} + +http { + 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; + tcp_nodelay on; + server_tokens off; + keepalive_timeout 65; + + client_body_buffer_size 512k; + client_max_body_size 64M; + + default_type application/octet-stream; + include /etc/nginx/mime.types; + include /etc/nginx/http.d/*.conf; +} -- cgit v1.3.1