mirror of https://github.com/Aidaho12/haproxy-wi
34 lines
848 B
Plaintext
34 lines
848 B
Plaintext
![]() |
user nginx;
|
||
|
worker_processes 1;
|
||
|
|
||
|
error_log /var/log/nginx/error.log warn;
|
||
|
pid /var/run/nginx.pid;
|
||
|
|
||
![]() |
{% if ansible_facts['os_family'] == "RedHat" or ansible_facts['os_family'] == 'CentOS' %}
|
||
|
# Load dynamic modules. See /usr/share/doc/nginx/README.dynamic.
|
||
|
include /usr/share/nginx/modules/*.conf;
|
||
|
{% endif %}
|
||
![]() |
events {
|
||
|
worker_connections 1021;
|
||
|
}
|
||
|
|
||
|
|
||
|
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 65;
|
||
|
|
||
|
#gzip on;
|
||
|
|
||
|
include /etc/nginx/conf.d/*.conf;
|
||
|
}
|