coursework/ansible/roles/nginx_site/templates/nginx.conf.j2

27 lines
647 B
Plaintext
Raw Permalink Normal View History

2024-11-24 16:44:14 +00:00
user nginx;
2024-11-24 16:58:14 +00:00
worker_processes auto;
error_log /var/log/nginx/error.log warn;
2024-11-24 16:44:14 +00:00
pid /var/run/nginx.pid;
events {
2024-11-24 16:58:14 +00:00
worker_connections 1024;
2024-11-24 16:44:14 +00:00
}
http {
include 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"';
2024-11-24 16:58:14 +00:00
access_log /var/log/nginx/access.log main;
2024-11-24 16:44:14 +00:00
sendfile on;
tcp_nopush on;
tcp_nodelay on;
2024-11-24 16:58:14 +00:00
keepalive_timeout 65;
types_hash_max_size 2048;
2024-11-24 16:44:14 +00:00
include /etc/nginx/conf.d/*.conf;
}