Skip to content

Instantly share code, notes, and snippets.

@itsrachelfish
Created August 2, 2021 19:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itsrachelfish/fa55268d14d430a3d96e783c4fdbe26b to your computer and use it in GitHub Desktop.
Save itsrachelfish/fa55268d14d430a3d96e783c4fdbe26b to your computer and use it in GitHub Desktop.
Playasoft Volunteer DB Nginx Config
server {
listen 80;
server_name volunteer.wetfish.net;
client_max_body_size 32M;
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
root /home/volunteer/laravel-voldb/laravel/public;
index index.php index.html index.htm;
location / {
autoindex off;
try_files $uri $uri/ /index.php?$query_string;
}
# pass the PHP scripts to FastCGI server
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/run/php/php7.1-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment