default.conf 1.1 KB

123456789101112131415161718192021222324252627282930
  1. server {
  2. listen 80;
  3. listen 443 ssl http2;
  4. server_name localhost;
  5. root /var/www/html/web;
  6. index index.php;
  7. ssl_certificate /etc/nginx/ssl/localhost.crt;
  8. ssl_certificate_key /etc/nginx/ssl/localhost.key;
  9. ssl_protocols TLSv1.2 TLSv1.3;
  10. ssl_ciphers TLS-CHACHA20-POLY1305-SHA256:TLS-AES-256-GCM-SHA384:TLS-AES-128-GCM-SHA256: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;
  11. ssl_prefer_server_ciphers on;
  12. ssl_early_data on;
  13. location / {
  14. try_files $uri $uri/ /index.php?$query_string;
  15. }
  16. location ~ \.php$ {
  17. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  18. fastcgi_pass php-fpm:9000;
  19. fastcgi_index index.php;
  20. include fastcgi_params;
  21. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  22. fastcgi_param PATH_INFO $fastcgi_path_info;
  23. }
  24. }