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":"web","phpVersion":"8.0","varnishCacheSettings":{"cacheLifetime":"604800","controller":"drupal","excludes":["^\/admin\/"],"excludedParams":["__SID","noCache"]}}
|
#{"rootDirectory":"web","phpVersion":"8.0","varnishCacheSettings":{"cacheLifetime":"604800","controller":"drupal","excludes":["^\/admin\/","^\/user\/"],"excludedParams":["__SID","noCache"]}}
|
||||||
server {
|
server {
|
||||||
listen 8080;
|
listen 8080;
|
||||||
listen [::]:8080;
|
listen [::]:8080;
|
||||||
@@ -95,6 +95,22 @@ server {
|
|||||||
|
|
||||||
{{settings}}
|
{{settings}}
|
||||||
|
|
||||||
|
location ~/(admin/|user/|status.php|update.php|cron.php) {
|
||||||
|
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;
|
||||||
|
proxy_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;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#{"rootDirectory":"web","phpVersion":"8.1","varnishCacheSettings":{"cacheLifetime":"604800","controller":"drupal","excludes":["^\/admin\/"],"excludedParams":["__SID","noCache"]}}
|
#{"rootDirectory":"web","phpVersion":"8.1","varnishCacheSettings":{"cacheLifetime":"604800","controller":"drupal","excludes":["^\/admin\/","^\/user\/"],"excludedParams":["__SID","noCache"]}}
|
||||||
server {
|
server {
|
||||||
listen 8080;
|
listen 8080;
|
||||||
listen [::]:8080;
|
listen [::]:8080;
|
||||||
@@ -95,6 +95,22 @@ server {
|
|||||||
|
|
||||||
{{settings}}
|
{{settings}}
|
||||||
|
|
||||||
|
location ~/(admin/|user/|status.php|update.php|cron.php) {
|
||||||
|
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;
|
||||||
|
proxy_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