nginx.conf 600 B

1234567891011121314151617181920212223242526
  1. server {
  2. listen 8080;
  3. server_name ${OPEN_SEARCH_HOST_FOR_NGINX} localhost;
  4. add_header Content-Security-Policy "default-src 'none'; style-src 'self'; img-src 'self'";
  5. add_header X-Frame-Options "DENY" always;
  6. add_header X-Content-Type-Options "nosniff";
  7. root /var/www/html;
  8. index index.php;
  9. location / {
  10. try_files $uri $uri/ /index.php?$args;
  11. }
  12. location ~ \.php$ {
  13. fastcgi_pass unix:/run/php-fpm83.sock;
  14. fastcgi_index index.php;
  15. include fastcgi.conf;
  16. }
  17. location ~ /\. {
  18. deny all;
  19. }
  20. }