mirror of
https://github.com/correl/melpa.git
synced 2024-12-20 21:16:34 +00:00
91 lines
1.5 KiB
Text
91 lines
1.5 KiB
Text
worker_processes 4;
|
|
pid /home/melpa/var/run/nginx.pid;
|
|
# error_log /dev/null crit;
|
|
daemon off;
|
|
|
|
events {
|
|
worker_connections 768;
|
|
# multi_accept on;
|
|
}
|
|
|
|
http {
|
|
##
|
|
# Basic Settings
|
|
##
|
|
|
|
sendfile on;
|
|
tcp_nopush on;
|
|
tcp_nodelay on;
|
|
keepalive_timeout 65;
|
|
types_hash_max_size 2048;
|
|
server_tokens off;
|
|
|
|
# server_names_hash_bucket_size 64;
|
|
|
|
charset utf-8;
|
|
|
|
include /etc/nginx/mime.types;
|
|
default_type application/octet-stream;
|
|
|
|
##
|
|
# Logging Settings
|
|
##
|
|
access_log /home/melpa/log/melpa.access.log combined;
|
|
error_log /home/melpa/log/melpa.error.log info;
|
|
set_real_ip_from 127.0.0.1;
|
|
real_ip_header X-Forwarded-For;
|
|
|
|
|
|
##
|
|
# Gzip Settings
|
|
##
|
|
|
|
gzip off;
|
|
gzip_disable "msie6";
|
|
gzip_vary on;
|
|
#gzip_proxied any;
|
|
gzip_comp_level 6;
|
|
gzip_buffers 16 8k;
|
|
gzip_http_version 1.1;
|
|
gzip_types text/plain text/xhtml text/css text/js text/csv application/javascript application/x-javascript application/json application/xml text/xml application/atom+xml application/rss+xml;
|
|
|
|
##
|
|
# 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
|
|
##
|
|
|
|
#passenger_root /usr;
|
|
#passenger_ruby /usr/bin/ruby;
|
|
|
|
##
|
|
# Virtual Host Configs
|
|
##
|
|
|
|
server {
|
|
server_name melpa.milkbox.net;
|
|
server_tokens off;
|
|
server_name_in_redirect off;
|
|
|
|
root /home/melpa/www;
|
|
|
|
listen 1337;
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
location = /50x.html {
|
|
root /var/www/nginx-default;
|
|
}
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|