Changeset 63308
- Timestamp:
- 08/16/2026 06:46:59 PM (5 hours ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
.env.example (modified) (1 diff)
-
docker-compose.yml (modified) (2 diffs)
-
tools/local-env/default.template (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/.env.example
r62407 r63308 14 14 # Where to run WordPress from. Valid options are 'src' and 'build'. 15 15 LOCAL_DIR=src 16 17 # Whether or not to enable text compression (gzip) in the web server. 18 # Valid options are 'on' and 'off'. 19 LOCAL_NGINX_COMPRESSION=off 16 20 17 21 # The PHP version to use. Valid options are 'latest', and '{version}-fpm'. -
trunk/docker-compose.yml
r62937 r63308 15 15 environment: 16 16 LOCAL_DIR: ${LOCAL_DIR-src} 17 LOCAL_NGINX_COMPRESSION: ${LOCAL_NGINX_COMPRESSION:-off} 17 18 18 19 volumes: … … 21 22 22 23 # Load our config file, substituting environment variables into the config. 23 command: /bin/sh -c "envsubst '$$LOCAL_DIR ' < /etc/nginx/conf.d/default.template > /etc/nginx/conf.d/default.conf && exec nginx -g 'daemon off;'"24 command: /bin/sh -c "envsubst '$$LOCAL_DIR $$LOCAL_NGINX_COMPRESSION' < /etc/nginx/conf.d/default.template > /etc/nginx/conf.d/default.conf && exec nginx -g 'daemon off;'" 24 25 25 26 depends_on: -
trunk/tools/local-env/default.template
r58097 r63308 15 15 16 16 absolute_redirect off; 17 18 gzip ${LOCAL_NGINX_COMPRESSION}; 19 gzip_vary on; 20 gzip_proxied any; 21 gzip_comp_level 5; 22 gzip_min_length 256; 23 gzip_types 24 application/javascript 25 text/javascript 26 application/json 27 application/xml 28 application/rss+xml 29 text/css 30 text/plain 31 image/svg+xml; 17 32 18 33 if (!-e $request_filename) {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)