Guest User

Untitled

a guest
Jul 26th, 2023
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. server {
  2.  
  3. server_name mydomain;
  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/php8.1-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.  
  45. listen [::]:443 ssl ipv6only=on; # managed by Certbot
  46. listen 443 ssl; # managed by Certbot
  47. ssl_certificate /etc/letsencrypt/live/panel.xpertclient.net/fullchain.pem; # managed by Certbot
  48. ssl_certificate_key /etc/letsencrypt/live/panel.xpertclient.net/privkey.pem; # managed by Certbot
  49. include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
  50. ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
  51.  
  52. }
  53. server {
  54. if ($host = panel.xpertclient.net) {
  55. return 301 https://$host$request_uri;
  56. } # managed by Certbot
  57.  
  58.  
  59. listen 80;
  60. listen [::]:80;
  61.  
  62. server_name mydomain;
  63. return 404; # managed by Certbot
  64.  
  65.  
  66. }
Advertisement
Add Comment
Please, Sign In to add comment