nginx.conf 1.4 KB

12345678910111213141516171819202122232425
  1. server {
  2. add_header Content-Security-Policy "default-src 'none'; style-src 'self'; img-src 'self'";
  3. add_header X-Frame-Options "DENY" always;
  4. add_header X-Content-Type-Options "nosniff";
  5. add_header Permissions-Policy "accelerometer=(), ambient-light-sensor=(), attribution-reporting=(), autoplay=(), bluetooth=(), browsing-topics=(), camera=(), compute-pressure=(), display-capture=(), document-domain=(), encrypted-media=(), fullscreen=(), gamepad=(), geolocation=(), gyroscope=(), hid=(), indentity-credentials-get=(), idle-detection=(), local-fonts=(), magnetometer=(), microphone=(), midi=(), otp-credentials=(), payment=(), picture-in-picture=(), publickey-credentials-create=(), publickey-credentials-get=(), screen-wake-lock=(), serial=(), speaker-selection=(), storage-access=(), usb=(), web-share=(), window-management=(), xr-spatial-tracking=()";
  6. listen 8080 default_server;
  7. server_name _;
  8. root /var/www/binternet;
  9. index index.php;
  10. location ~ \.php$ {
  11. fastcgi_pass unix:/run/php/php-fpm84.sock;
  12. fastcgi_index index.php;
  13. fastcgi_param PATH_INFO $path_info;
  14. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  15. fastcgi_split_path_info ^(.+?\.php)(/.*)$;
  16. try_files $fastcgi_script_name =404;
  17. set $path_info $fastcgi_path_info;
  18. include fastcgi_params;
  19. }
  20. }