整理性能测试用nginx测试容器,改用docker-compose编排,避免手动操作
This commit is contained in:
48
conf/nginx.conf
Normal file
48
conf/nginx.conf
Normal file
@@ -0,0 +1,48 @@
|
||||
user nginx;
|
||||
worker_processes 32;
|
||||
worker_rlimit_nofile 131072;
|
||||
|
||||
error_log /var/log/nginx/error.log warn;
|
||||
pid /var/run/nginx.pid;
|
||||
|
||||
events {
|
||||
worker_connections 32768;
|
||||
use epoll;
|
||||
multi_accept off;
|
||||
accept_mutex off;
|
||||
}
|
||||
|
||||
http {
|
||||
tcp_nopush on;
|
||||
tcp_nodelay on;
|
||||
access_log off;
|
||||
|
||||
sendfile on;
|
||||
keepalive_timeout 30;
|
||||
gzip off;
|
||||
|
||||
server {
|
||||
listen 443 ssl reuseport;
|
||||
server_name www.server.com www.server1.com;
|
||||
|
||||
ssl_certificate /etc/nginx/ssl/server.crt;
|
||||
ssl_certificate_key /etc/nginx/ssl/server.key;
|
||||
ssl_session_tickets on;
|
||||
ssl_session_cache off;
|
||||
ssl_session_cache shared:SSL:30m;
|
||||
ssl_session_timeout 30m;
|
||||
ssl_protocols SSLv2 SSLv3 TLSv1.2;
|
||||
ssl_ciphers HIGH:!aNULL:!MD5;
|
||||
ssl_prefer_server_ciphers on;
|
||||
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html index.htm;
|
||||
}
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user