Skip to content

Commit c82b328

Browse files
committed
Fix local FS cache config name
1 parent 7e89e55 commit c82b328

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

versioned_docs/version-4-pre/cache/internal/local_filesystem.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ description: Learn about how to configure the local filesystem cache in imgproxy
77
imgproxy can store cached images on the local filesystem. To use filesystem cache, do the following:
88

99
1. Set the `IMGPROXY_CACHE_USE` environment variable to `fs`.
10-
2. Set `IMGPROXY_CACHE_LOCAL_FILESYSTEM_ROOT` to your cache directory path.
10+
2. Set `IMGPROXY_CACHE_FS_ROOT` to your cache directory path.
1111
3. _(optional)_ Specify a path prefix for cache files with `IMGPROXY_CACHE_PATH_PREFIX`.
1212

1313
### Configuration
1414

1515
* `IMGPROXY_CACHE_USE`: set to `fs` to enable local filesystem cache.
16-
* `IMGPROXY_CACHE_LOCAL_FILESYSTEM_ROOT`: the root directory for filesystem cache. Default: blank
16+
* `IMGPROXY_CACHE_FS_ROOT`: the root directory for filesystem cache. Default: blank
1717
* `IMGPROXY_CACHE_PATH_PREFIX`: a path prefix for the cache files. This can be useful to organize cache files in a specific directory structure. Default: blank
1818
* `IMGPROXY_CACHE_BUCKET`: When using the filesystem adapter, this can be used as an additional path component. Default: blank
1919
* `IMGPROXY_CACHE_KEY_HEADERS`: a comma-separated list of HTTP request headers to include in the cache key. This allows caching different versions of the same image based on request headers. Default: blank
@@ -22,8 +22,8 @@ imgproxy can store cached images on the local filesystem. To use filesystem cach
2222

2323
### Example
2424

25-
Assume you want to cache processed images in `/var/cache/imgproxy`. Run imgproxy with `IMGPROXY_CACHE_LOCAL_FILESYSTEM_ROOT` set to your cache directory:
25+
Assume you want to cache processed images in `/var/cache/imgproxy`. Run imgproxy with `IMGPROXY_CACHE_FS_ROOT` set to your cache directory:
2626

2727
```bash
28-
IMGPROXY_CACHE_USE=fs IMGPROXY_CACHE_LOCAL_FILESYSTEM_ROOT=/var/cache/imgproxy imgproxy
28+
IMGPROXY_CACHE_USE=fs IMGPROXY_CACHE_FS_ROOT=/var/cache/imgproxy imgproxy
2929
```

versioned_docs/version-4-pre/configuration/options.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ Read the [Internal cache guide](../cache/internal.mdx) for more info.
457457

458458
imgproxy can store cached images on the local filesystem. To use [filesystem cache](../cache/internal/local_filesystem.mdx), set `IMGPROXY_CACHE_USE` to `fs`:
459459

460-
* [`IMGPROXY_CACHE_LOCAL_FILESYSTEM_ROOT`]: ((pro)) the root directory for filesystem cache. Default: blank
460+
* [`IMGPROXY_CACHE_FS_ROOT`]: ((pro)) the root directory for filesystem cache. Default: blank
461461

462462
See full documentation in [Cache storage: Local filesystem](../cache/internal/local_filesystem.mdx).
463463

0 commit comments

Comments
 (0)