beta.omnireader_http 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. server {
  2. listen 80;
  3. server_name beta.omnireader.ru b.beta.omnireader.ru;
  4. set $liberama http://127.0.0.1:34081;
  5. client_max_body_size 50m;
  6. proxy_read_timeout 1h;
  7. gzip on;
  8. gzip_min_length 1024;
  9. gzip_proxied expired no-cache no-store private auth;
  10. gzip_types *;
  11. location @liberama {
  12. proxy_pass $liberama;
  13. }
  14. location /api {
  15. proxy_pass $liberama;
  16. }
  17. location /ws {
  18. proxy_pass $liberama;
  19. proxy_http_version 1.1;
  20. proxy_set_header Upgrade $http_upgrade;
  21. proxy_set_header Connection "upgrade";
  22. proxy_read_timeout 600s;
  23. }
  24. location /tmp {
  25. root /home/beta.liberama/.liberama/public-files;
  26. types { } default_type "application/xml; charset=utf-8";
  27. add_header Content-Encoding gzip;
  28. try_files $uri @liberama;
  29. }
  30. location /upload {
  31. root /home/beta.liberama/.liberama/public-files;
  32. try_files $uri @liberama;
  33. }
  34. location / {
  35. root /home/beta.liberama/.liberama/public;
  36. location ~* \.(?:manifest|appcache|html)$ {
  37. expires -1;
  38. }
  39. }
  40. }
  41. server {
  42. listen 80;
  43. server_name beta.omnireader.ru;
  44. return 301 https://$host$request_uri;
  45. }