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.
|
|
server { listen {{ env.APP_PORT }} default_server;
access_log /var/log/nginx/{{ env.APP_NAME }}/wp-access.log; error_log /var/log/nginx/{{ env.APP_NAME }}/wp-error.log;
client_max_body_size 50M; root /var/www/wordpress/{{ env.APP_NAME }}; index index.php index.html index.htm; charset UTF-8;
location / { try_files $uri/ /index.php?$args; }
location ~ \.php$ { try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/run/php/php-fpm.sock; fastcgi_index index.php; include fastcgi.conf; }
location ~* \.(js|css|png|jpg|jpeg|svg|gif|ico|eot|otf|ttf|woff|woff2|mp3|wav|ogg)$ { add_header Access-Control-Allow-Origin *; access_log off; log_not_found off; expires 30d; }
# Mailpoet - tinyMCE quick fix location ~ /wp-content/plugins/wysija-newsletters/js/tinymce/.*\.(htm|html)$ { add_header Access-Control-Allow-Origin *; access_log off; log_not_found off; expires 30d; }
location = /robots.txt { access_log off; log_not_found off; } location ~ /\. { deny all; access_log off; log_not_found off; } }
|