invantive-dokumentationen del av Invantive Cloud
Invantive supportforumLogga in / Registrera dig

Konfiguration av webbapplikation

Exempel

Följande JSON är ett exempel för denna standardiserade konfigurationskomponent:

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

Definition

Hänvisningar görs till konfigurationskomponenter som standardiserats i alla Invantive-teknikens webbapplikationer, även om inte alla konfigurationskomponenter behöver vara implementerade i alla webbapplikationer:

{
  "$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
    }
  }
}