34 lines
813 B
Django/Jinja
34 lines
813 B
Django/Jinja
|
|
user nginx;
|
||
|
|
worker_processes auto;
|
||
|
|
error_log {{ nginx_proxy_nginx_error_log }};
|
||
|
|
pid /run/nginx.pid;
|
||
|
|
|
||
|
|
events {
|
||
|
|
worker_connections {{ nginx_proxy_nginx_worker_connections }};
|
||
|
|
}
|
||
|
|
|
||
|
|
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 {{ nginx_proxy_nginx_access_log }} main;
|
||
|
|
|
||
|
|
sendfile on;
|
||
|
|
tcp_nopush on;
|
||
|
|
tcp_nodelay on;
|
||
|
|
keepalive_timeout 65;
|
||
|
|
types_hash_bucket_size 64;
|
||
|
|
types_hash_max_size 2048;
|
||
|
|
|
||
|
|
include /etc/nginx/mime.types;
|
||
|
|
default_type application/octet-stream;
|
||
|
|
|
||
|
|
map $http_upgrade $connection_upgrade {
|
||
|
|
default upgrade;
|
||
|
|
'' close;
|
||
|
|
}
|
||
|
|
|
||
|
|
include /etc/nginx/conf.d/*.conf;
|
||
|
|
}
|