This commit is contained in:
Stefan Wieczorek
2022-09-20 16:16:56 +02:00
parent 01c3a7f350
commit 7abeac91b3

View File

@@ -1,4 +1,4 @@
#{"rootDirectory":"","phpVersion":"8.0","varnishCacheSettings":{"cacheLifetime":"604800","controller":"wordpress","excludes":["\/checkout\/","t.php","^\/my-account\/"],"excludedParams":["__SID","noCache","purge"]}}
#{"rootDirectory":"","phpVersion":"8.0","varnishCacheSettings":{"cacheLifetime":"604800","controller":"wordpress","excludes":["^\/wp-login.php\/","\/checkout\/","^\/my-account\/","t.php"],"excludedParams":["__SID","noCache"]}}
server {
listen 8080;
listen [::]:8080;
@@ -16,7 +16,7 @@ server {
try_files $uri =404;
fastcgi_read_timeout 3600;
fastcgi_send_timeout 3600;
fastcgi_param HTTPS $fastcgi_https;
fastcgi_param HTTPS "on";
fastcgi_pass 127.0.0.1:{{php_fpm_port}};
fastcgi_param PHP_VALUE "{{php_settings}}";
}
@@ -56,6 +56,22 @@ server {
{{settings}}
location ~/wp-admin/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header Host $host;
roxy_pass http://127.0.0.1:8080;
proxy_max_temp_file_size 0;
proxy_connect_timeout 7200;
proxy_send_timeout 7200;
proxy_read_timeout 7200;
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
}
location / {
{{varnish_proxy_pass}}
proxy_set_header Host $http_host;