-
Notifications
You must be signed in to change notification settings - Fork 0
Proxy Configuration Settings
The features of Mnestix-Proxy are configured in the appsettings.json
file. This configuration sets up the reverse proxy using YARP, defining routing, clusters, authentication, and feature flags.
Defines the API key required for custom endpoint security.
- AzureAd: Settings for Azure EntraId authentication.
- OpenId: Settings for OpenID authentication.
- If both are enabled, OpenID takes precedence.
-
AllowRetrievingAllShellsAndSubmodels
: Enables retrieval of all shells and submodels. -
AasDiscoveryMiddleware
: Enables AAS discovery middleware.
Defines how incoming requests are matched and routed to clusters:
-
MnestixApiRoute - This is connection to Mnestix API (Templates)
- Path:
api/{**catch-all}
- Cluster:
mnestixApiCluster
- Authorization:
customApiKeyToModifyValuesPolicy
- Path:
-
EnvironmentRoute - This route is configuration to aas repository.
- Path:
repo/{**catch-all}
- Cluster:
aasRepoCluster
- Authorization:
customApiKeyToModifyValuesPolicy
- Transforms: Path pattern and CORS header
- Path:
-
SubmodelRepositoryRoute - This route is configuration to submodel repository.
- Path:
repo/submodels/{**remainder}
- Cluster:
submodelRepoCluster
- Authorization:
customApiKeyToModifyValuesPolicy
- Transforms: Path pattern and CORS header
- Path:
-
DiscoveryRoute - This route is configuration to discovery service (required for 'AasDiscoveryMiddleware').
- Path:
discovery/{**catch-all}
- Cluster:
discoveryCluster
- Authorization:
customApiKeyToModifyValuesPolicy
- Transforms: Path pattern and CORS header
- Path:
-
InfluxRoute - This route is configuration (for time series influx db). Hides influx settings from browser entirely.
- Path:
influx/{**catch-all}
- Cluster:
influxCluster
- CORS Policy:
allowAnything
- Transforms: Path pattern and sets Authorization header for InfluxDB
- Path:
Defines backend destinations for each route:
-
mnestixApiCluster:
http://localhost:5064/
-
aasRepoCluster:
http://localhost:8081/
-
submodelRepoCluster:
http://localhost:8081/
-
discoveryCluster:
http://localhost:8082/
-
influxCluster:
http://<your-domain>:<port>
- API key required for modifying values via custom policy.
- CORS headers are set for certain routes to allow cross-origin requests.
- InfluxDB route sets a specific Authorization token.
- Modify cluster addresses to point to your backend services.
- Adjust authentication settings as needed.
- Use feature flags to enable/disable specific proxy features.