Created
November 9, 2018 17:20
-
-
Save dabd/d41b79862ffd06fb1afdd05e4d59c39d to your computer and use it in GitHub Desktop.
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
error_log /usr/local/var/log/nginx/error.log; | |
worker_processes 4; | |
#worker_shutdown_timeout 1s; | |
events { | |
worker_connections 4096; | |
} | |
http { | |
upstream test_lbmanager_upstreams { | |
server localhost:9100 max_fails=2 fail_timeout=10; | |
# server localhost:8813 max_fails=0 fail_timeout=10 backup; | |
keepalive 128; | |
} | |
server { | |
listen 80; | |
listen 443 ssl; | |
ssl_certificate /etc/ssl/certs/myssl.crt; | |
ssl_certificate_key /etc/ssl/private/myssl.key; | |
ssl_prefer_server_ciphers on; | |
ssl_session_timeout 10m; | |
ssl_protocols TLSv1.2 TLSv1.1; | |
ssl_session_cache shared:SSL_cache:20m; | |
server_name 127.0.0.1; | |
client_max_body_size 100m; | |
client_body_buffer_size 128k; | |
proxy_set_header Host $host; | |
proxy_connect_timeout 5; | |
proxy_send_timeout 45; | |
proxy_read_timeout 60; | |
proxy_buffer_size 8k; | |
proxy_buffers 4 32k; | |
proxy_busy_buffers_size 64k; | |
proxy_temp_file_write_size 64k; | |
proxy_http_version 1.1; | |
proxy_set_header Connection ""; | |
location / { | |
proxy_pass http://test_lbmanager_upstreams; | |
proxy_next_upstream off; | |
proxy_redirect http:// https://; | |
} | |
location /nginx_status { | |
proxy_redirect off; | |
stub_status; | |
} | |
# lingering_close always; | |
# lingering_time 60s; | |
# lingering_timeout 60s; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment