summaryrefslogtreecommitdiff
path: root/.env.template
diff options
context:
space:
mode:
authorJeremy Lin <[email protected]>2021-12-29 18:01:32 -0800
committerJeremy Lin <[email protected]>2021-12-30 23:06:52 -0800
commitb7eedbcddc5bc52391472329fa6a43a2c9ae0a94 (patch)
treef190168335c0ee8436d55e61f6d7cd58729c0731 /.env.template
parent920371929bc89f5000d26c55b834148b32c8058f (diff)
downloadvaultwarden-b7eedbcddc5bc52391472329fa6a43a2c9ae0a94.tar.gz
vaultwarden-b7eedbcddc5bc52391472329fa6a43a2c9ae0a94.zip
Add config option to set the HTTP redirect code for external icons
The default code is 307 (temporary) to make it easier to test different icon services, but once a service has been decided on, users should ideally switch to using permanent redirects for cacheability.
Diffstat (limited to '.env.template')
-rw-r--r--.env.template9
1 files changed, 8 insertions, 1 deletions
diff --git a/.env.template b/.env.template
index 7fcbbfcb..fecac220 100644
--- a/.env.template
+++ b/.env.template
@@ -135,13 +135,20 @@
## which is replaced with the domain. For example: `https://icon.example.com/domain/{}`.
##
## `internal` refers to Vaultwarden's built-in icon fetching implementation.
-## If an external service is set, an icon request to Vaultwarden will return an HTTP 307
+## If an external service is set, an icon request to Vaultwarden will return an HTTP
## redirect to the corresponding icon at the external service. An external service may
## be useful if your Vaultwarden instance has no external network connectivity, or if
## you are concerned that someone may probe your instance to try to detect whether icons
## for certain sites have been cached.
# ICON_SERVICE=internal
+## Icon redirect code
+## The HTTP status code to use for redirects to an external icon service.
+## The supported codes are 307 (temporary) and 308 (permanent).
+## Temporary redirects are useful while testing different icon services, but once a service
+## has been decided on, consider using permanent redirects for cacheability.
+# ICON_REDIRECT_CODE=307
+
## Disable icon downloading
## Set to true to disable icon downloading in the internal icon service.
## This still serves existing icons from $ICON_CACHE_FOLDER, without generating any external