mirror of
https://github.com/cloudpanel-io/vhost-templates.git
synced 2026-05-18 08:23:31 +08:00
.
This commit is contained in:
@@ -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 {
|
server {
|
||||||
listen 8080;
|
listen 8080;
|
||||||
listen [::]:8080;
|
listen [::]:8080;
|
||||||
@@ -16,7 +16,7 @@ server {
|
|||||||
try_files $uri =404;
|
try_files $uri =404;
|
||||||
fastcgi_read_timeout 3600;
|
fastcgi_read_timeout 3600;
|
||||||
fastcgi_send_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_pass 127.0.0.1:{{php_fpm_port}};
|
||||||
fastcgi_param PHP_VALUE "{{php_settings}}";
|
fastcgi_param PHP_VALUE "{{php_settings}}";
|
||||||
}
|
}
|
||||||
@@ -56,6 +56,22 @@ server {
|
|||||||
|
|
||||||
{{settings}}
|
{{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 / {
|
location / {
|
||||||
{{varnish_proxy_pass}}
|
{{varnish_proxy_pass}}
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
|
|||||||
Reference in New Issue
Block a user