TEXT   30   0
   237 2.12 KB    89

nginx.conf

By Guest
Created: 2022-03-06 09:53:00
Expiry: Never

  1. upstream derpy_upstream {
  2. server localhost:8080 fail_timeout=0;
  3. }
  4.  
  5. server {
  6. listen 80;
  7. #listen 8080;
  8.  
  9. server_name twibooru.local;
  10.  
  11. root /home/anon/project-dir/public;
  12.  
  13.  
  14. location ^~ /.well-known/acme-challenge/ {
  15. root /tmp/letsencrypt/;
  16. }
  17.  
  18. location ~ ^/img/view/(.+)/([0-9]+).*\.([A-Za-z]+)$ {
  19. expires max;
  20. add_header Cache-Control public;
  21. alias "/home/anon/project-dir/public/system/images/thumbs/$1/$2/full.$3";
  22. }
  23.  
  24. location ~ ^/img/download/(.+)/([0-9]+).*\.([A-Za-z]+)$ {
  25. add_header Content-Disposition "attachment";
  26. expires max;
  27. add_header Cache-Control public;
  28. alias "/home/anon/project-dir/public/system/images/thumbs/$1/$2/full.$3";
  29. }
  30.  
  31. location ~ ^/img/(.+) {
  32. expires max;
  33. add_header Cache-Control public;
  34. alias /home/anon/project-dir/public/system/images/thumbs/$1;
  35. }
  36.  
  37. location ~ ^/spns/(.+) {
  38. expires max;
  39. add_header Cache-Control public;
  40. alias /home/anon/project-dir/public/system/images/adverts/$1;
  41. }
  42.  
  43. location ~ ^/avatars/(.+) {
  44. expires max;
  45. add_header Cache-Control public;
  46. alias /home/anon/project-dir/public/system/images/avatars/$1;
  47. }
  48.  
  49. location ~ ^/media/(.+) {
  50. expires max;
  51. add_header Cache-Control public;
  52. alias /home/anon/project-dir/public/system/images/$1;
  53. }
  54.  
  55. location /error_502.html {
  56. }
  57.  
  58. location / {
  59. #proxy_redirect off;
  60.  
  61. proxy_intercept_errors on;
  62. error_page 502 /error_50x.html;
  63.  
  64. proxy_set_header Host $host:$server_port;
  65. proxy_set_header X-Real-IP $remote_addr;
  66. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  67.  
  68. #proxy_set_header Host 127.0.0.1:8080;
  69. #proxy_set_header X-Real-IP 127.0.0.1;
  70. #proxy_set_header X-Forwarded-For 127.0.0.1;
  71.  
  72. client_max_body_size 10m;
  73. client_body_buffer_size 128k;
  74.  
  75. proxy_connect_timeout 90;
  76. proxy_send_timeout 90;
  77. proxy_read_timeout 90;
  78.  
  79.  
  80. proxy_buffer_size 16k;
  81. proxy_buffers 4 32k;
  82. proxy_busy_buffers_size 64k;
  83. proxy_temp_file_write_size 64k;
  84. }
  85. }

Yandere Thread - Yandere Applejack (completed)

by Guest

Bonding with Nature

by Guest

The Long and Short of It (RGRE)

by Guest

incest relationships piece of the whole pie (lewd) by Frostybox[...]

by Guest

incest thread piece of the (non-canon) pie, limestone's pie by[...]

by Guest