Configuration
Configuration Model
We use the ASP.NET Core Configuration model for all settings.
You can configure Squidex using the following methods:
The
appsettings.json
file.The
appsettings.Production.json
file.Environment variables.
Command line arguments.
The ordering is important. Command line arguments override other settings, environment variables override the JSON files and so on. Using a combination of all these options can be very helpful.
Read the comments of the appsettings.json
file to understand all configuration settings.
In this example we want to override the following setting from the configuration file:
If you combine all keys from the JSON root to the setting you get the full key of this setting.
Aggregate the keys by two underscores to get the name of the environment variable:
Aggregate the keys by using a colon and you get the name of the command line argument
Casing does not matter.
Important Settings
We assume that you use environment variables to store the settings. Therefore we use the notation with the two underscores.
Settings and Environment Variables
These are the most important settings:
Set
IDENTITY__GOOGLECLIENT
IDENTITY__GITHUBCLIENT
IDENTITY__MICROSOFTCLIENT
to empty to disable authentication with third party providers.
Health Checks
Many systems support health checks to determinate the health of a service. For example load balancers periodically call an endpoint of the service to remove dead nodes from the list of available nodes and to stop serving HTTP requests to these nodes.
Squidex provides the following health checks:
/healthz
(e.g. https://cloud.squidex.io/healthz): An endpoint to check if Squidex can serve HTTP requests and has not consumed too much memory. This is a recommended health check for liveness, startup and readiness probes./cluster-healthz
(e.g. https://cloud.squidex.io/cluster-healthz): An endpoint to check the status of the cluster and if a node can connect to the cluster. It is not recommended to use this endpoint for liveness, startup and readiness probes, because the clustering system has its own health system./background-healthz
(e.g. https://cloud.squidex.io/background-healthz): An endpoint to check the status of background processes. It is not recommended to use this endpoint for liveness, startup and readiness probes, because a restart of a node would not help in most cases, but it is useful for monitoring./readiness
(e.g. https://cloud.squidex.io/readiness): Special endpoint for readiness and startup probes. Usually it is not needed to use this endpoint.
Troubleshooting
Please check the logs to see detailed error messages.
Login screen shows 'Operation failed' message.
Typically, the login fails because the URLS__BASEURL
setting has an invalid value. Ensure that the public domain used by your users is configured here. Squidex might run behind several other servers such as Cloudflare, load balancers and reverse proxies and does not know the original domain. Therefore, you must configure the URL.
I see the login screen but I cannot login.
Ensure that you have configured a strong password if you use IDENTITY__ADMINPASSWORD
.
You will see the following entry in your logs:
The password requirements are:
Passwords must be at least 6 characters.
Passwords must have at least one non alphanumeric character.
Passwords must have at least one digit ('0'-'9').
Passwords must have at least one lowercase ('a'-'z').
If yoy have forgotten your admin password you can use the following environment variable to update the admin account with the password from the configuration whenever a Squidex instance is started:
IDENTITY__ADMINRECREATE=true
Last updated