| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- user root;
- events {
- worker_connections 51200;
- }
- http {
- access_log /app/access.log;
- error_log /app/error.log;
- gzip on;
- gzip_min_length 1k;
- gzip_buffers 4 16k;
- gzip_http_version 1.1;
- gzip_comp_level 9;
- gzip_types text/plain application/x-javascript text/css application/xml text/javascript application/x-httpd-php application/javascript application/json;
- gzip_disable "MSIE [1-6]\.";
- include mime.types;
- default_type application/octet-stream;
- sendfile on;
- keepalive_timeout 65;
- client_header_timeout 150;
- client_body_timeout 1800;
- send_timeout 150;
- server {
- listen 80;
- server_name 127.0.0.1;
- location / {
- index index.html index.htm;
- try_files $uri $uri/ /index.html;
- root /app;
- }
- location /api/ {
- proxy_pass http://web.410eth.com:8888/;
- add_header 'Access-Control-Allow-Origin' '*';
- add_header 'Access-Control-Allow-Credentials' 'true';
- }
- }
- }
|