2021-04-07 09:19:06 -04:00
|
|
|
## ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ##
|
|
|
|
## ! This file was generated from a template ! ##
|
|
|
|
## ! See /etc/nginx/templates/ ! ##
|
|
|
|
## ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ##
|
2015-02-06 12:01:50 -05:00
|
|
|
daemon off;
|
|
|
|
user www-data;
|
2021-04-07 09:19:06 -04:00
|
|
|
worker_processes ${NGINX_WORKER_PROCESSES};
|
2015-02-06 12:01:50 -05:00
|
|
|
pid /run/nginx.pid;
|
|
|
|
|
|
|
|
events {
|
2021-04-07 09:19:06 -04:00
|
|
|
worker_connections ${NGINX_WORKER_CONNECTIONS};
|
2015-02-06 12:01:50 -05:00
|
|
|
# multi_accept on;
|
|
|
|
}
|
|
|
|
|
|
|
|
http {
|
|
|
|
|
|
|
|
##
|
|
|
|
# Basic Settings
|
|
|
|
##
|
|
|
|
|
|
|
|
sendfile on;
|
|
|
|
tcp_nopush on;
|
|
|
|
tcp_nodelay on;
|
2023-02-02 04:42:07 -05:00
|
|
|
keepalive_timeout ${NGINX_KEEPALIVE_TIMEOUT};
|
2015-02-06 12:01:50 -05:00
|
|
|
types_hash_max_size 2048;
|
|
|
|
# server_tokens off;
|
|
|
|
|
|
|
|
# server_names_hash_bucket_size 64;
|
|
|
|
# server_name_in_redirect off;
|
|
|
|
|
|
|
|
include /etc/nginx/mime.types;
|
|
|
|
default_type application/octet-stream;
|
|
|
|
|
|
|
|
##
|
|
|
|
# Logging Settings
|
|
|
|
##
|
|
|
|
|
|
|
|
access_log /var/log/nginx/access.log;
|
|
|
|
error_log /var/log/nginx/error.log;
|
|
|
|
|
|
|
|
##
|
|
|
|
# Gzip Settings
|
|
|
|
##
|
|
|
|
|
|
|
|
gzip on;
|
|
|
|
gzip_disable "msie6";
|
2022-10-17 06:13:53 -04:00
|
|
|
gzip_proxied any; # allow upstream server to compress.
|
2015-02-06 12:01:50 -05:00
|
|
|
|
2016-01-13 10:10:31 -05:00
|
|
|
client_max_body_size 50m;
|
|
|
|
|
2015-02-06 12:01:50 -05:00
|
|
|
# gzip_vary on;
|
|
|
|
# gzip_proxied any;
|
|
|
|
# gzip_comp_level 6;
|
|
|
|
# gzip_buffers 16 8k;
|
|
|
|
# gzip_http_version 1.1;
|
|
|
|
# gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
|
|
|
|
|
|
|
|
##
|
|
|
|
# nginx-naxsi config
|
|
|
|
##
|
|
|
|
# Uncomment it if you installed nginx-naxsi
|
|
|
|
##
|
|
|
|
|
|
|
|
#include /etc/nginx/naxsi_core.rules;
|
|
|
|
|
|
|
|
##
|
|
|
|
# nginx-passenger config
|
|
|
|
##
|
|
|
|
# Uncomment it if you installed nginx-passenger
|
|
|
|
##
|
2021-04-07 09:19:06 -04:00
|
|
|
|
2015-02-06 12:01:50 -05:00
|
|
|
#passenger_root /usr;
|
|
|
|
#passenger_ruby /usr/bin/ruby;
|
|
|
|
|
|
|
|
##
|
|
|
|
# Virtual Host Configs
|
|
|
|
##
|
|
|
|
|
|
|
|
include /etc/nginx/conf.d/*.conf;
|
|
|
|
include /etc/nginx/sites-enabled/*;
|
|
|
|
}
|