Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moved cache related $skip_reason up #27

Open
wants to merge 1 commit into
base: php74-stable
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions ubuntu-7.4/rootfs/etc/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ events {
}

http {

# Configure hashmaps so that environment does not change defaults
map_hash_max_size 262144;
map_hash_bucket_size 128;
server_names_hash_bucket_size 64;

# Hide nginx version information.
server_tokens off;

Expand Down Expand Up @@ -121,6 +121,9 @@ http {
# Init the cache mode variable
set $cachemode "";

# Set default cache skip reason
set $skip_reason "";

root ${WEB_ROOT};

# Use index.php if it exists but also allow static websites in subfolders
Expand All @@ -134,14 +137,13 @@ http {
disable_symlinks off;

## state variable must be set as it will crash nginx if logged in cache is not used
set $state '';
set $state '';

# Include custom nginx server additions from project
include ${NGINX_INCLUDE_DIR}/server/*.conf;
include ${NGINX_INCLUDE_DIR}/environments/${WP_ENV}/server/*.conf;

set $custom_parameters "";
set $skip_reason "";

# Include custom cache confs
include ${NGINX_INCLUDE_DIR}/cache/*.conf;
Expand Down Expand Up @@ -349,7 +351,7 @@ http {
include cache/fastcgicache.conf;

#Enable project spesific config to root block
include ${NGINX_INCLUDE_DIR}/environments/${WP_ENV}/root/*.conf;
include ${NGINX_INCLUDE_DIR}/environments/${WP_ENV}/root/*.conf;

# Fallback into php
include fastcgi_settings.conf;
Expand Down