Skip to content

Plugin Geoblock Middleware

Appears in

  • .Values.middlewares.$name.data

pluginName

Define the pluginName

Keymiddlewares.$name.data.pluginName
Typestring
Required
Helm tpl
DefaultGeoBlock

Example

middlewares:
middleware-name:
data:
pluginName: my-plugin-name

api

Define the api

Keymiddlewares.$name.data.api
Typestring
Required
Helm tpl
Default-

Example

middlewares:
middleware-name:
data:
api: https://api.geoblock.org/v2/geoblock

allowLocalRequests

Define the allowLocalRequests

Keymiddlewares.$name.data.allowLocalRequests
Typebool
Required
Helm tpl
Default-

Example

middlewares:
middleware-name:
data:
allowLocalRequests: true

logLocalRequests

Define the logLocalRequests

Keymiddlewares.$name.data.logLocalRequests
Typebool
Required
Helm tpl
Default-

Example

middlewares:
middleware-name:
data:
logLocalRequests: true

logAllowedRequests

Define the logAllowedRequests

Keymiddlewares.$name.data.logAllowedRequests
Typebool
Required
Helm tpl
Default-

Example

middlewares:
middleware-name:
data:
logAllowedRequests: true

logApiRequests

Define the logApiRequests

Keymiddlewares.$name.data.logApiRequests
Typebool
Required
Helm tpl
Default-

Example

middlewares:
middleware-name:
data:
logApiRequests: true

apiTimeoutMs

Define the apiTimeoutMs

Keymiddlewares.$name.data.apiTimeoutMs
Typeint
Required
Helm tpl
Default-

Example

middlewares:
middleware-name:
data:
apiTimeoutMs: 1000

cacheSize

Define the cacheSize

Keymiddlewares.$name.data.cacheSize
Typeint
Required
Helm tpl
Default-

Example

middlewares:
middleware-name:
data:
cacheSize: 1000

forceMonthlyUpdate

Define the forceMonthlyUpdate

Keymiddlewares.$name.data.forceMonthlyUpdate
Typebool
Required
Helm tpl
Default-

Example

middlewares:
middleware-name:
data:
forceMonthlyUpdate: true

allowUnknownCountries

Define the allowUnknownCountries

Keymiddlewares.$name.data.allowUnknownCountries
Typebool
Required
Helm tpl
Default-

Example

middlewares:
middleware-name:
data:
allowUnknownCountries: true

unknownCountryApiResponse

Define the unknownCountryApiResponse

Keymiddlewares.$name.data.unknownCountryApiResponse
Typestring
Required
Helm tpl
Default-

Example

middlewares:
middleware-name:
data:
unknownCountryApiResponse: some-value

blackListMode

Define the blackListMode

Keymiddlewares.$name.data.blackListMode
Typebool
Required
Helm tpl
Default-

Example

middlewares:
middleware-name:
data:
blackListMode: true

silentStartUp

Define the silentStartUp

Keymiddlewares.$name.data.silentStartUp
Typebool
Required
Helm tpl
Default-

Example

middlewares:
middleware-name:
data:
silentStartUp: true

addCountryHeader

Define the addCountryHeader

Keymiddlewares.$name.data.addCountryHeader
Typebool
Required
Helm tpl
Default-

Example

middlewares:
middleware-name:
data:
addCountryHeader: true

countries

Define the countries

Keymiddlewares.$name.data.countries
Typelist of string
Required
Helm tpl
Default-

Example

middlewares:
middleware-name:
data:
countries:
- some-country
- some-other-country

Full Examples

middlewares:
middleware-name:
enabled: true
type: plugin-geoblock
data:
api: https://api.geoblock.org/v2/geoblock
allowLocalRequests: true
logLocalRequests: true
logAllowedRequests: true
logApiRequests: true
apiTimeoutMs: 1000
cacheSize: 1000
forceMonthlyUpdate: true
allowUnknownCountries: true
unknownCountryApiResponse: some-value
blackListMode: some-value
silentStartUp: true
addCountryHeader: true
countries:
- some-country
- some-other-country