38 lines
731 B
Nginx Configuration File
38 lines
731 B
Nginx Configuration File
error_log [errorlog];
|
|
worker_processes 4;
|
|
pid [pidFile];
|
|
|
|
events {
|
|
worker_connections 768;
|
|
}
|
|
|
|
http {
|
|
sendfile on;
|
|
tcp_nopush on;
|
|
tcp_nodelay on;
|
|
keepalive_timeout 10;
|
|
types_hash_max_size 2048;
|
|
|
|
default_type application/octet-stream;
|
|
|
|
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
|
ssl_prefer_server_ciphers on;
|
|
|
|
access_log [accesslog];
|
|
|
|
gzip on;
|
|
gzip_types text/plain;
|
|
gzip_disable "msie6";
|
|
|
|
server {
|
|
listen [listenPort];
|
|
location / {
|
|
proxy_pass [redirectUri];
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Host $host;
|
|
proxy_cache_bypass $http_upgrade;
|
|
}
|
|
}
|
|
}
|