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.

ragflow.conf 686B

1234567891011121314151617181920212223242526272829
  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|api) {
  12. proxy_pass http://ragflow:9380;
  13. include proxy.conf;
  14. }
  15. location / {
  16. index index.html;
  17. try_files $uri $uri/ /index.html;
  18. }
  19. # Cache-Control: max-age~@~AExpires
  20. location ~ ^/static/(css|js|media)/ {
  21. expires 10y;
  22. access_log off;
  23. }
  24. }