Personal wiki notebook (not under development)

nginx_luminotes 1009B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. gzip_comp_level 4;
  2. gzip_min_length 1100;
  3. gzip_types text/plain text/html text/css application/x-javascript;
  4. upload_progress luminotes 1m;
  5. upstream luminotes {
  6. server 127.0.0.1:8081;
  7. }
  8. server {
  9. listen 80;
  10. server_name yourhostname.com;
  11. access_log /var/log/nginx/luminotes.access.log;
  12. location / {
  13. proxy_pass http://luminotes;
  14. proxy_redirect off;
  15. client_max_body_size 505m;
  16. track_uploads luminotes 30s;
  17. }
  18. location ^~ /files/progress {
  19. report_uploads luminotes;
  20. }
  21. location /download/ {
  22. internal;
  23. alias /path/to/luminotes_user/.luminotes/files/;
  24. }
  25. location /download_product/ {
  26. internal;
  27. alias /path/to/luminotes/products/;
  28. }
  29. location /favicon.ico {
  30. root /path/to/luminotes/static/images;
  31. }
  32. location /robots.txt {
  33. root /path/to/luminotes/static/html;
  34. }
  35. location /static/ {
  36. root /path/to/luminotes;
  37. }
  38. error_page 500 502 503 504 /reload.html;
  39. location = /reload.html {
  40. root /path/to/luminotes/static/html;
  41. }
  42. }