You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: versioned_docs/version-4-pre/cache/internal/local_filesystem.mdx
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,13 +7,13 @@ description: Learn about how to configure the local filesystem cache in imgproxy
7
7
imgproxy can store cached images on the local filesystem. To use filesystem cache, do the following:
8
8
9
9
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.
11
11
3._(optional)_ Specify a path prefix for cache files with `IMGPROXY_CACHE_PATH_PREFIX`.
12
12
13
13
### Configuration
14
14
15
15
*`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
17
17
*`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
18
18
*`IMGPROXY_CACHE_BUCKET`: When using the filesystem adapter, this can be used as an additional path component. Default: blank
19
19
*`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
22
22
23
23
### Example
24
24
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:
Copy file name to clipboardExpand all lines: versioned_docs/version-4-pre/configuration/options.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -457,7 +457,7 @@ Read the [Internal cache guide](../cache/internal.mdx) for more info.
457
457
458
458
imgproxy can store cached images on the local filesystem. To use [filesystem cache](../cache/internal/local_filesystem.mdx), set `IMGPROXY_CACHE_USE` to `fs`:
459
459
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
461
461
462
462
See full documentation in [Cache storage: Local filesystem](../cache/internal/local_filesystem.mdx).
0 commit comments