You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526272829303132
  1. server {
  2. listen 80;
  3. server_name _;
  4. root /ragflow/web/dist;
  5. gzip on;
  6. gzip_min_length 1k;
  7. gzip_comp_level 9;
  8. gzip_types text/plain application/javascript application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png;
  9. gzip_vary on;
  10. gzip_disable "MSIE [1-6]\.";
  11. location /v1 {
  12. proxy_pass http://ragflow:9380;
  13. include proxy.conf;
  14. }
  15. location /HPImageArchive {
  16. proxy_pass https://cn.bing.com;
  17. }
  18. location / {
  19. index index.html;
  20. try_files $uri $uri/ /index.html;
  21. }
  22. # Cache-Control: max-age~@~AExpires
  23. location ~ ^/static/(css|js|media)/ {
  24. expires 10y;
  25. access_log off;
  26. }
  27. }