feat(19.3-06): purge route accepts proxied requests on siteCache.allowProxied (WR-03)
- runtimeConfig.siteCache.allowProxied (NUXT_SITE_CACHE_ALLOW_PROXIED, default false) lets the shared purge route accept a request that came through a TLS-terminating proxy; the bearer token is then the only gate - shared lib, route and spec stay byte-identical across the three layers, with updated sha256 pins and two new sitePurge specs - version 0.5.0
This commit is contained in:
@@ -41,6 +41,12 @@ export default defineNuxtConfig({
|
||||
// backend's site_cache.purge_token. Shorter than 32 characters, the
|
||||
// route answers 404.
|
||||
purgeToken: '',
|
||||
// NUXT_SITE_CACHE_ALLOW_PROXIED: set it to true when the backend reaches
|
||||
// the site through a TLS-terminating proxy (an https site_cache.purge_url
|
||||
// on another host), which adds X-Forwarded-For, X-Real-IP or Forwarded.
|
||||
// The route then accepts proxied requests and the bearer token is the
|
||||
// only gate; unset, it answers 404 to any proxied request.
|
||||
allowProxied: false,
|
||||
},
|
||||
public: {
|
||||
journal: {
|
||||
|
||||
Reference in New Issue
Block a user