Documentation Invantiveune partie de Invantive cloud
Forums d'Invantive SupportConnectez-vous/inscrivez-vous

Configuration de l'Application Web

Exemples

Le JSON suivant est un exemple pour ce composant de configuration standardisé :

{ "AccessControl": ...
, "RateLimitControl": ...
, "DefaultResponseHeaders": ...
, "LogTraceToFile": false
, "LogRequestProgress": false
}

Définition

Il est fait référence aux composants de configuration standardisés pour l'ensemble des applications web de la technologie Invantive, bien que tous les composants de configuration n'aient pas forcément été implémentés dans toutes les applications web :

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://invantive.com/schemas/defs/WebApplicationSetting.schema.json",
  "title": "WebApplicationSetting",
  "description": "Web application configuration.",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "AccessControl": {
      "anyOf": [
        {
          "$ref": "./AccessControl.schema.json"
        },
        {
          "type": "null"
        }
      ],
      "description": "Access Control configuration."
    },
    "RateLimitControl": {
      "anyOf": [
        {
          "$ref": "./RateLimitControl.schema.json"
        },
        {
          "type": "null"
        }
      ],
      "description": "Rate limit control configuration."
    },
    "DefaultResponseHeaders": {
      "type": ["object", "null"],
      "additionalProperties": {
        "type": "string"
      },
      "description": "Default response HTTP headers."
    },
    "LogTraceToFile": {
      "type": ["boolean", "null"],
      "description": "Whether to create log file for trace.",
      "default": false
    },
    "LogRequestProgress": {
      "type": "boolean",
      "description": "Whether to create log file per request.",
      "default": false
    }
  }
}