Advertisement
Guest User

help

a guest
Aug 22nd, 2019
345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.13 KB | None | 0 0
  1. server_tokens off;
  2.  
  3. server {
  4. listen 80;
  5. server_name paneel.netnode.eu;
  6. return 301 https://$server_name$request_uri;
  7. }
  8.  
  9. server {
  10. listen 443 ssl http2;
  11. server_name paneel.netnode.eu;
  12.  
  13. root /var/www/pterodactyl/public;
  14. index index.php;
  15.  
  16. access_log /var/log/nginx/pterodactyl.app-access.log;
  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. # SSL Configuration
  26. ssl_certificate /etc/letsencrypt/live/paneel.netnode.eu/fullchain.pem;
  27. ssl_certificate_key /etc/letsencrypt/live/paneel.netnode.eu/privkey.pem;
  28. ssl_session_cache shared:SSL:10m;
  29. ssl_protocols TLSv1.2;
  30. 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-AES12$
  31. ssl_prefer_server_ciphers on;
  32.  
  33. # See https://hstspreload.org/ before uncommenting the line below.
  34. # add_header Strict-Transport-Security "max-age=15768000; preload;";
  35. add_header X-Content-Type-Options nosniff;
  36. add_header X-XSS-Protection "1; mode=block";
  37. add_header X-Robots-Tag none;
  38. add_header Content-Security-Policy "frame-ancestors 'self'";
  39. add_header X-Frame-Options DENY;
  40. add_header Referrer-Policy same-origin;
  41.  
  42. location / {
  43. try_files $uri $uri/ /index.php?$query_string;
  44. }
  45. # SSL Configuration
  46. ssl_certificate /etc/letsencrypt/live/paneel.netnode.eu/fullchain.pem;
  47. ssl_certificate_key /etc/letsencrypt/live/paneel.netnode.eu/privkey.pem;
  48. ssl_session_cache shared:SSL:10m;
  49. ssl_protocols TLSv1.2;
  50. 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-AES12$
  51. ssl_prefer_server_ciphers on;
  52.  
  53. # See https://hstspreload.org/ before uncommenting the line below.
  54. # add_header Strict-Transport-Security "max-age=15768000; preload;";
  55. add_header X-Content-Type-Options nosniff;
  56. add_header X-XSS-Protection "1; mode=block";
  57. add_header X-Robots-Tag none;
  58. add_header Content-Security-Policy "frame-ancestors 'self'";
  59. add_header X-Frame-Options DENY;
  60. add_header Referrer-Policy same-origin;
  61.  
  62. location / {
  63. try_files $uri $uri/ /index.php?$query_string;
  64. }
  65.  
  66. location ~ \.php$ {
  67. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  68. fastcgi_pass unix:/run/php/php7.2-fpm.sock;
  69. fastcgi_index index.php;
  70. include fastcgi_params;
  71. fastcgi_param PHP_VALUE "upload_max_filesize = 100M \n post_max_size=100M";
  72. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  73. fastcgi_param HTTP_PROXY "";
  74. fastcgi_intercept_errors off;
  75. fastcgi_buffer_size 16k;
  76. fastcgi_buffers 4 16k;
  77. fastcgi_connect_timeout 300;
  78. fastcgi_send_timeout 300;
  79. fastcgi_read_timeout 300;
  80. include /etc/nginx/fastcgi_params;
  81. }
  82.  
  83. location ~ /\.ht {
  84. deny all;
  85. }
  86. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement