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.https.conf 929B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. server {
  2. listen 80;
  3. server_name your-ragflow-domain.com;
  4. return 301 https://$host$request_uri;
  5. }
  6. server {
  7. listen 443 ssl;
  8. server_name your-ragflow-domain.com;
  9. ssl_certificate /etc/nginx/ssl/fullchain.pem;
  10. ssl_certificate_key /etc/nginx/ssl/privkey.pem;
  11. root /ragflow/web/dist;
  12. gzip on;
  13. gzip_min_length 1k;
  14. gzip_comp_level 9;
  15. 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;
  16. gzip_vary on;
  17. gzip_disable "MSIE [1-6]\.";
  18. location ~ ^/(v1|api) {
  19. proxy_pass http://ragflow:9380;
  20. include proxy.conf;
  21. }
  22. location / {
  23. index index.html;
  24. try_files $uri $uri/ /index.html;
  25. }
  26. # Cache-Control: max-age~@~AExpires
  27. location ~ ^/static/(css|js|media)/ {
  28. expires 10y;
  29. access_log off;
  30. }
  31. }