@digital-net-org/Digital.Net.Api
Digital Net Rest API solution.
Digital.Net.Api container handles Digital API configuration, users, client website, files and authentication.
You can configurate the application using environment variables and volume while mounting the docker image.
"Default" prefix means that the value is used to set the default configuration at the first application start. These values are stored in the database and can be modified later using the provided endpoints.
| Accessor | Type | Default value |
|---|---|---|
| Domain Describes your application domain. Used to prefix Cookies, setup JWT Audience/Issuer and all subdomains will be added the allowed CORS policies |
string |
Mandatory |
| CorsAllowedOrigins All entries will be added the allowed CORS policies (be aware that Domain is automatically added to allowed origins) |
string[] |
[] |
| Database:ConnectionString Postgres Database connection string formated like "Host=host;Port=5432;Database=db;Username=usr;Password=psw" |
string |
Mandatory |
| Database:UseSqlite Use an Sqlite Database if true. Used for Integration tests |
boolean |
false |
| Defaults:FileSystemPath Path to folder where the application will save uploaded files |
string |
"/digital_net_storage" |
| Defaults:Auth:JwtRefreshExpiration Refresh token expiration expressed in milliseconds |
number |
1800000 |
| Defaults:Auth:JwtBearerExpiration Bearer token expiration expressed in milliseconds |
number |
300000 |
| Defaults:Auth:JwtSecret Secret for Jwt configuration, must be a least 46 characters long |
string |
Random string |