|
|
@@ -0,0 +1,39 @@
|
|
|
+worker_processes 4;
|
|
|
+
|
|
|
+events {
|
|
|
+ worker_connections 8192;
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+http {
|
|
|
+ include mime.types;
|
|
|
+ default_type application/octet-stream;
|
|
|
+
|
|
|
+
|
|
|
+ sendfile on;
|
|
|
+
|
|
|
+ keepalive_timeout 65;
|
|
|
+ server {
|
|
|
+ listen 10000;
|
|
|
+ server_name localhost;
|
|
|
+
|
|
|
+ proxy_set_header Host $host;
|
|
|
+ proxy_set_header X-Real-IP $remote_addr;
|
|
|
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
+
|
|
|
+ gzip off;
|
|
|
+ gzip_min_length 1k;
|
|
|
+ gzip_buffers 4 16k;
|
|
|
+ #gzip_http_version 1.0;
|
|
|
+ gzip_comp_level 5;
|
|
|
+ gzip_types text/plain application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png;
|
|
|
+ gzip_vary off;
|
|
|
+ gzip_disable "MSIE [1-6]\.";
|
|
|
+
|
|
|
+ root /usr/share/nginx/app;
|
|
|
+ location / {
|
|
|
+ index index.html index.htm;
|
|
|
+ alias /usr/share/nginx/app/;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|