envoi d'une réponse statique

En plus du routage et de la redirection, vous pouvez servir des réponses statiques avec Envoy. Dans ce cas, je veux servir une réponse interdite (403) route_config : virtual_hosts : - nom : picockpit domaines : ["picockpit.local:443", "picockpit.local"] routes : - match : { prefix : "/demo" } direct_response : status : 403 body : inline_string : "Interdit". - match : {préfixe : "/"} route : {cluster : target_picockpit} Il peut aussi servir...

Weiterlesen