Guest User

Untitled

a guest
Apr 4th, 2021
23
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server_tokens off;
  2. set_real_ip_from 103.21.244.0/22;
  3. set_real_ip_from 103.22.200.0/22;
  4. set_real_ip_from 103.31.4.0/22;
  5. set_real_ip_from 104.16.0.0/12;
  6. set_real_ip_from 108.162.192.0/18;
  7. set_real_ip_from 131.0.72.0/22;
  8. set_real_ip_from 141.101.64.0/18;
  9. set_real_ip_from 162.158.0.0/15;
  10. set_real_ip_from 172.64.0.0/13;
  11. set_real_ip_from 173.245.48.0/20;
  12. set_real_ip_from 188.114.96.0/20;
  13. set_real_ip_from 190.93.240.0/20;
  14. set_real_ip_from 197.234.240.0/22;
  15. set_real_ip_from 198.41.128.0/17;
  16. set_real_ip_from 2400:cb00::/32;
  17. set_real_ip_from 2606:4700::/32;
  18. set_real_ip_from 2803:f800::/32;
  19. set_real_ip_from 2405:b500::/32;
  20. set_real_ip_from 2405:8100::/32;
  21. set_real_ip_from 2c0f:f248::/32;
  22. set_real_ip_from 2a06:98c0::/29;
  23. real_ip_header X-Forwarded-For;
  24. server {
  25. listen 80 default_server;
  26. server_name admin.mefloun.eu;
  27. return 301 https://$server_name$request_uri;
  28. }
  29. server {
  30. listen 443 ssl http2 default_server;
  31. server_name admin.mefloun.eu;
  32. root /var/www/pterodactyl/public;
  33. index index.php;
  34. access_log /var/log/nginx/pterodactyl.app-access.log;
  35. error_log /var/log/nginx/pterodactyl.app-error.log error;
  36. # allow larger file uploads and longer script runtimes
  37. client_max_body_size 100m;
  38. client_body_timeout 120s;
  39. sendfile off;
  40. # SSL Configuration
  41. ssl_certificate /etc/letsencrypt/live/admin.mefloun.eu/fullchain.pem;
  42. ssl_certificate_key /etc/letsencrypt/live/admin.mefloun.eu/privkey.pem;
  43. ssl_session_cache shared:SSL:10m;
  44. ssl_protocols TLSv1.2;
  45. ssl_ciphers ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256;
  46. ssl_prefer_server_ciphers on;
  47. # See https://hstspreload.org/ before uncommenting the line below.
  48. # add_header Strict-Transport-Security "max-age=15768000; preload;";
  49. add_header X-Content-Type-Options nosniff;
  50. add_header X-XSS-Protection "1; mode=block";
  51. add_header X-Robots-Tag none;
  52. add_header Content-Security-Policy "frame-ancestors self";
  53. add_header X-Frame-Options DENY;
  54. add_header Referrer-Policy same-origin;
  55. location / {
  56. try_files $uri $uri/ /index.php?$query_string;
  57. }
  58. location ~ \.php$ {
  59. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  60. fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
  61. fastcgi_index index.php;
  62. include fastcgi_params;
  63. fastcgi_param PHP_VALUE "upload_max_filesize = 100M \n post_max_size=100M";
  64. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  65. fastcgi_param HTTP_PROXY "";
  66. fastcgi_intercept_errors off;
  67. fastcgi_buffer_size 16k;
  68. fastcgi_buffers 4 16k;
  69. fastcgi_connect_timeout 300;
  70. fastcgi_send_timeout 300;
  71. fastcgi_read_timeout 300;
  72. include /etc/nginx/fastcgi_params;
  73. }
  74. location ~ /\.ht {
  75. deny all;
  76. }
  77. }
  78.  
RAW Paste Data