Created
May 25, 2017 14:40
-
-
Save prabhash1785/fe7bd1f4da4f63503135bd296fc77633 to your computer and use it in GitHub Desktop.
nginx_config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user foo_bar; | |
worker_processes 2; | |
worker_rlimit_nofile 10000; | |
daemon off; | |
error_log /some_dir/error.log info; | |
pid /some_dir/nginx.pid; | |
events { | |
worker_connections 8192; | |
epoll_events 2048; | |
} | |
http { | |
upstream server { | |
server foo.bar:1111; | |
keepalive 32; | |
} | |
server { | |
server_name some_server; | |
listen 80; | |
location /some_txt { | |
proxy_http_version 1.1; | |
proxy_set_header Connection ""; | |
proxy_buffering off; | |
proxy_pass_header Auth-Status,Content-Length; | |
proxy_pass http://server/some_txt; | |
} | |
} | |
} | |
mail { | |
auth_http "127.0.0.1:80/auth"; | |
server { | |
protocol smtp; | |
listen 25; | |
proxy on; | |
xclient on; | |
timeout 15; | |
starttls on; | |
smtp_auth none; | |
smtp_capabilities PIPELINING "SIZE 41943040" "8BITMIME"; | |
smtp_client_buffer 65536; | |
proxy_timeout 60; | |
proxy_data_timeout 300; | |
proxy_post_data_timeout 10; | |
proxy_buffer 65536; | |
proxy_pass_error_message on; | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
ssl_ciphers "ciphers"; | |
ssl_prefer_server_ciphers on; | |
ssl_certificate /crt_loc; | |
ssl_certificate_key /key_loc; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment