51 lines
1.2 KiB
Plaintext
51 lines
1.2 KiB
Plaintext
|
user {{ configuration_templates.plus.user }};
|
||
|
worker_processes {{ configuration_templates.plus.worker_processes }};
|
||
|
|
||
|
error_log /var/log/nginx/error.log {{ configuration_templates.plus.error_level }};
|
||
|
pid /var/run/nginx.pid;
|
||
|
|
||
|
|
||
|
events {
|
||
|
worker_connections {{ configuration_templates.plus.worker_connections }};
|
||
|
}
|
||
|
|
||
|
|
||
|
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 {{ configuration_templates.plus.keepalive_timeout }};
|
||
|
|
||
|
#gzip on;
|
||
|
|
||
|
include /etc/nginx/conf.d/*.conf;
|
||
|
}
|
||
|
|
||
|
|
||
|
# TCP/UDP proxy and load balancing block
|
||
|
#
|
||
|
#stream {
|
||
|
# Example configuration for TCP load balancing
|
||
|
|
||
|
#upstream stream_backend {
|
||
|
# zone tcp_servers 64k;
|
||
|
# server backend1.example.com:12345;
|
||
|
# server backend2.example.com:12345;
|
||
|
#}
|
||
|
|
||
|
#server {
|
||
|
# listen 12345;
|
||
|
# status_zone tcp_server;
|
||
|
# proxy_pass stream_backend;
|
||
|
#}
|
||
|
#}
|