Add: JWT authentication in Web API. Related configuration and services are added.
25 lines
539 B
JSON
25 lines
539 B
JSON
{
|
|
"Logging": {
|
|
"LogLevel": {
|
|
"Default": "Information",
|
|
"Microsoft.AspNetCore": "Warning"
|
|
}
|
|
},
|
|
"AllowedHosts": "*",
|
|
"OptixServe": {
|
|
"Api": {
|
|
"Listen": "0.0.0.0",
|
|
"Port": "54321"
|
|
},
|
|
"Database": {
|
|
"Type": "Sqlite",
|
|
"Host": "optixserve.db"
|
|
},
|
|
"Jwt": {
|
|
"Secret": "YOUR_SECRET_KEY_HERE_DO_NOT_SHARE_THIS_AND_MAKE_IT_LONG_ENOUGH",
|
|
"Issuer": "OptixServe",
|
|
"Audience": "OptixServeUsers",
|
|
"TokenExpirationMinutes": 60
|
|
}
|
|
}
|
|
} |