Skip to content

Instantly share code, notes, and snippets.

@seanlanglands
Created September 6, 2022 05:10
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 seanlanglands/422dd632d12f26a28b3b579bd51a92cc to your computer and use it in GitHub Desktop.
Save seanlanglands/422dd632d12f26a28b3b579bd51a92cc to your computer and use it in GitHub Desktop.
#{"rootDirectory":"public","phpVersion":"8.0"}
server {
listen 80;
listen [::]:80;
listen 443 ssl http2;
listen [::]:443 ssl http2;
{{ssl_certificate_key}}
{{ssl_certificate}}
{{server_name}}
{{root}}
{{nginx_access_log}}
{{nginx_error_log}}
{{settings}}
location ~ \.php$ {
include fastcgi_params;
fastcgi_intercept_errors on;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
try_files $uri =404;
fastcgi_read_timeout 3600;
fastcgi_send_timeout 3600;
fastcgi_param HTTPS $fastcgi_https;
fastcgi_pass 127.0.0.1:{{php_fpm_port}};
fastcgi_param PHP_VALUE "{{php_settings}}";
}
include global/restrictions.conf;
include global/security.conf;
include global/cloudflare.conf;
include global/wordpress.conf;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment