Created
September 6, 2022 05:10
-
-
Save seanlanglands/422dd632d12f26a28b3b579bd51a92cc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#{"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