provisioning tool for building opinionated architecture
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
504 B

9 months ago
  1. server {
  2. listen {{ APP_PORT }} default_server;
  3. root /var/www/{{APP_NAME}}/htdocs; # Check this
  4. error_log /var/log/nginx/{{APP_NAME}}/error.log;
  5. index index.php index.html index.htm;
  6. charset utf-8;
  7. location / {
  8. try_files $uri $uri/ /index.php;
  9. }
  10. location ~ [^/]\.php(/|$) {
  11. client_max_body_size 50M;
  12. try_files $uri =404;
  13. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  14. fastcgi_read_timeout 600;
  15. include fastcgi_params;
  16. fastcgi_pass unix:/var/run/php/php{{PHP_VERSION}}-fpm.sock;
  17. }
  18. }