Skip to content

appsettings.json

Beschreibung

Die elego Frontend-Anwendung wird im appsettings.json konfiguriert.

Folgende Settings, die teils in eigenen Kapiteln beschrieben sind, werden unterstützt:

Setting
BaseUrl Endpunkt des Service-APIs.
ApplicationName Name der Anwendung.
AllowedHosts Legt fest, von welchen Hostnamen Anfragen aktzeptiert werden. Empfehlung: URL der Anwendung
Settings Verschiedene Einstellungen. Siehe Settings
ProviderConfiguration Einstellungen für Ext.app.REMOTING_API. Siehe
Authentication OIDC-Parametrierung
ThemeColors Theme-Definition
BannerInfo Banner-Definition
Links Parametrierung statischer Links aus der Anwendung
Serilog Logging mit Serilog. Siehe Serilog

Beispiel

# Beispiel appsettings.json

{
    "BaseUrl": "https://sampleapplicationservice/api",
    "ApplicationName": "Elego Sample",
    "AllowedHosts": "*",

    "Settings": {
       ...
    },

    "ProviderConfiguration": {
        ...
    },

    "Authentication": {
        ...
    },

    "ThemeColors": {
        ...
    },

    "BannerInfo": {
        ...
    },

    "Links": [
        { ... },
        { ... }
    ],

    "Serilog": {
        ...
    }
}