SHARE
TWEET

Untitled

a guest Nov 18th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2.     listen 80;
  3.     server_name _;
  4.  
  5.     root /var/www/pterodactyl/public;
  6.     index index.html index.htm index.php;
  7.     charset utf-8;
  8.  
  9.     location / {
  10.         try_files $uri $uri/ /index.php?$query_string;
  11.     }
  12.  
  13.     location = /favicon.ico { access_log off; log_not_found off; }
  14.     location = /robots.txt  { access_log off; log_not_found off; }
  15.  
  16.     access_log off;
  17.     error_log  /var/log/nginx/pterodactyl.app-error.log error;
  18.  
  19.     # allow larger file uploads and longer script runtimes
  20.     client_max_body_size 100m;
  21.     client_body_timeout 120s;
  22.  
  23.     sendfile off;
  24.  
  25.     location ~ \.php$ {
  26.         fastcgi_split_path_info ^(.+\.php)(/.+)$;
  27.         fastcgi_pass unix:/run/php/php7.2-fpm.sock;
  28.         fastcgi_index index.php;
  29.         include fastcgi_params;
  30.         fastcgi_param PHP_VALUE "upload_max_filesize = 100M \n post_max_size=100M";
  31.         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  32.         fastcgi_param HTTP_PROXY "";
  33.         fastcgi_intercept_errors off;
  34.         fastcgi_buffer_size 16k;
  35.         fastcgi_buffers 4 16k;
  36.         fastcgi_connect_timeout 300;
  37.         fastcgi_send_timeout 300;
  38.         fastcgi_read_timeout 300;
  39.     }
  40.  
  41.     location ~ /\.ht {
  42.         deny all;
  43.     }
  44. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top