Advertisement
Guest User

nginx

a guest
May 16th, 2023
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1.  
  2. server {
  3. # Replace the example <domain> with your domain name or IP address
  4. listen 80;
  5. server_name 127.0.0.1;
  6.  
  7.  
  8. root /var/www/pterodactyl/public;
  9. index index.html index.htm index.php;
  10. charset utf-8;
  11.  
  12. location / {
  13. try_files $uri $uri/ /index.php?$query_string;
  14. }
  15.  
  16. location = /favicon.ico { access_log off; log_not_found off; }
  17. location = /robots.txt { access_log off; log_not_found off; }
  18.  
  19. access_log off;
  20. error_log /var/log/nginx/pterodactyl.app-error.log error;
  21.  
  22. # allow larger file uploads and longer script runtimes
  23. client_max_body_size 100m;
  24. client_body_timeout 120s;
  25.  
  26. sendfile off;
  27.  
  28. location ~ \.php$ {
  29. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  30. fastcgi_pass unix:/run/php/php8.1-fpm.sock;
  31. fastcgi_index index.php;
  32. include fastcgi_params;
  33. fastcgi_param PHP_VALUE "upload_max_filesize = 100M \n post_max_size=100M";
  34. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  35. fastcgi_param HTTP_PROXY "";
  36. fastcgi_intercept_errors off;
  37. fastcgi_buffer_size 16k;
  38. fastcgi_buffers 4 16k;
  39. fastcgi_connect_timeout 300;
  40. fastcgi_send_timeout 300;
  41. fastcgi_read_timeout 300;
  42. }
  43.  
  44. location ~ /\.ht {
  45. deny all;
  46. }
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement