nginx.conf 766 B

123456789101112131415161718192021222324252627282930313233
  1. server {
  2. listen 80;
  3. # gzip config
  4. gzip on;
  5. gzip_min_length 1k;
  6. gzip_comp_level 9;
  7. gzip_types text/plain text/css text/javascript application/json application/javascript application/x-javascript application/xml;
  8. gzip_vary on;
  9. gzip_disable "MSIE [1-6]\.";
  10. root /usr/share/nginx/html;
  11. location / {
  12. add_header Cache-Control no-cache;
  13. try_files $uri $uri/ /index.html;
  14. }
  15. location /dexdev {
  16. proxy_pass http://192.168.20.224:9000;
  17. }
  18. location /app-api/dexdev {
  19. proxy_pass http://192.168.20.224:9000/dexdev/;
  20. }
  21. location /api {
  22. proxy_pass https://youdao.hofo.co;
  23. }
  24. location /fWjxqMG1N0.txt {
  25. return 200 '00486947c95f9cc11e3d92353e2fefe1';
  26. }
  27. }