Skip to content

Instantly share code, notes, and snippets.

@aguinaldotupy
Created April 14, 2020 10:04
Show Gist options
  • Select an option

  • Save aguinaldotupy/fdbb8b63f6f173b8341f84416604de50 to your computer and use it in GitHub Desktop.

Select an option

Save aguinaldotupy/fdbb8b63f6f173b8341f84416604de50 to your computer and use it in GitHub Desktop.
configuration server nginx
server {
listen 80;
listen [::]:80;
root path/site;
index index.php index.html index.htm index.nginx-debian.html;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";
server_name localhost;
client_max_body_size 100M;
location / {
root your-site;
index index.php index.html index.htm;
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
fastcgi_read_timeout 3000;
}
location /uploads {
client_max_body_size 100M;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment