|
@@ -1,27 +0,0 @@
|
|
-server {
|
|
|
|
- listen 80;
|
|
|
|
- # gzip config
|
|
|
|
- gzip on;
|
|
|
|
- gzip_min_length 1k;
|
|
|
|
- gzip_comp_level 9;
|
|
|
|
- gzip_types text/plain text/css text/javascript application/json application/javascript application/x-javascript application/xml;
|
|
|
|
- gzip_vary on;
|
|
|
|
- gzip_disable "MSIE [1-6]\.";
|
|
|
|
-
|
|
|
|
- root /usr/share/nginx/html;
|
|
|
|
- include /etc/nginx/mime.types;
|
|
|
|
- location / {
|
|
|
|
- try_files $uri $uri/ /index.html;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- location ^~/api/ {
|
|
|
|
- proxy_pass http://jetlinks:8844/;
|
|
|
|
- proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
- proxy_set_header Host $host:$server_port;
|
|
|
|
- proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
- proxy_http_version 1.1;
|
|
|
|
- proxy_set_header Upgrade $http_upgrade;
|
|
|
|
- proxy_set_header Connection "upgrade";
|
|
|
|
- client_max_body_size 50m;
|
|
|
|
- }
|
|
|
|
-}
|
|
|