Advertisement
crafter2345_yt

Untitled

May 15th, 2021
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. server {
  2.  
  3. # SSL configuration
  4. #
  5. # listen 443 ssl default_server;
  6. # listen [::]:443 ssl default_server;
  7. #
  8. # Note: You should disable gzip for SSL traffic.
  9. # See: https://bugs.debian.org/773332
  10. #
  11. # Read up on ssl_ciphers to ensure a secure configuration.
  12. # See: https://bugs.debian.org/765782
  13. #
  14. # Self signed certs generated by the ssl-cert package
  15. # Don't use them in a production server!
  16. #
  17. # include snippets/snakeoil.conf;
  18.  
  19. root /var/www/html;
  20.  
  21. # Add index.php to the list if you are using PHP
  22. index index.php index.html index.htm index.nginx-debian.html;
  23. server_name vreecoaster.de; # managed by Certbot
  24.  
  25. add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
  26.  
  27. location ~ \.php$ {
  28. include snippets/fastcgi-php.conf;
  29. fastcgi_pass unix:/run/php/php8.0-fpm.sock;
  30. }
  31.  
  32. location / {
  33. try_files $uri $uri/ /index.php?$uri&$args;
  34. index index.php index.html;
  35. }
  36.  
  37. location /install/data/ {
  38. internal;
  39. }
  40. location /install/templates/ {
  41. internal;
  42. }
  43. location /internal_data/ {
  44. internal;
  45. }
  46. location /library/ { #legacy
  47. internal;
  48. }
  49. location /src/ {
  50. internal;
  51. }
  52.  
  53. location ~ \.php$ {
  54. try_files $uri =404;
  55. fastcgi_pass 127.0.0.1:9000;
  56. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  57. include fastcgi_params;
  58. }
  59.  
  60. # pass PHP scripts to FastCGI server
  61. #
  62. #location ~ \.php$ {
  63. # include snippets/fastcgi-php.conf;
  64. #
  65. # # With php-fpm (or other unix sockets):
  66. # fastcgi_pass unix:/run/php/php7.3-fpm.sock;
  67. # # With php-cgi (or other tcp sockets):
  68. # fastcgi_pass 127.0.0.1:9000;
  69. #}
  70.  
  71. # deny access to .htaccess files, if Apache's document root
  72. # concurs with nginx's one
  73. #
  74. #location ~ /\.ht {
  75. # deny all;
  76. #}
  77.  
  78. location ~* \.(jpg|jpeg|png|gif|ico|css|js)$ {
  79. expires 365d;
  80. }
  81.  
  82.  
  83. listen [::]:443 ssl http2 ipv6only=on;
  84. listen 443 ssl http2;
  85. gzip on;
  86. SSL CERTIFICATED CENSORED
  87.  
  88. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement