Skip to content

Commit

Permalink
update appsettings
Browse files Browse the repository at this point in the history
  • Loading branch information
Haik committed Dec 13, 2023
1 parent 61fab4f commit fadb736
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 49 deletions.
4 changes: 3 additions & 1 deletion src/WebApi/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,6 @@
app.MapPandaStandardEndpoints();


app.Run();
app.Run();

//todo adjust redis and swagger configurations from list to multiple single value
97 changes: 49 additions & 48 deletions src/WebApi/appsettings.Local.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@
"Enabled": true,
"JSONRoutePrefix": "",
"ApiBasePath": "/",
"Versions": [
{
"Key": "userV1",
"Versions": {
"userV1": {
"Name": "userV1",
"Title": "Panda API",
"Description": "Powered by PandaTech LLC: Where precision meets innovation. Let's build the future, one endpoint at a time."
},
{
"Key": "admin",
"admin": {
"Name": "admin",
"Title": "Panda API Admin",
"Description": "Panda API Admin"
}
]
}
},
"Cache": {
"Redis": {
Expand All @@ -46,48 +46,49 @@
"Enabled": true
}
}
}
},
"ResponseCrafterVisibility": "Private",
"ConnectionStrings": {
"Postgres": "Server=localhost;Port=5432;Database=panda_web_api;User Id=test;Password=test;Pooling=true;",
"Redis": "localhost:6379",
"AuditTrail": "https://beaudittrail.pandatech.it"
},
"RabbitMQSettings": {
"AuditTrail": {
"ExchangeName": "ca_audit_trail",
"RoutingKey": "ca_audit_entries",
"QueueName": "ca_audit_entries",
"RoutingKeyDLX": "ca_dead_audit_entries",
"QueueNameDLX": "ca_dead_audit_entries"
}
},
"Security": {
"SuperUser": {
"Email": "[email protected]",
"Password": "test"
},
"ResponseCrafterVisibility": "Private",
"ConnectionStrings": {
"Postgres": "Server=localhost;Port=5432;Database=panda_web_api;User Id=test;Password=test;Pooling=true;",
"Redis": "localhost:6379",
"AuditTrail": "https://beaudittrail.pandatech.it"
},
"RabbitMQSettings": {
"AuditTrail": {
"ExchangeName": "ca_audit_trail",
"RoutingKey": "ca_audit_entries",
"QueueName": "ca_audit_entries",
"RoutingKeyDLX": "ca_dead_audit_entries",
"QueueNameDLX": "ca_dead_audit_entries"
}
},
"Security": {
"SuperUser": {
"Email": "[email protected]",
"Password": "test"
},
"AdminCounterparty": {
"LegalName": "PandaTech",
"TaxCode": "12345678",
"PrimaryAddress": "Adonts 8/2"
},
"AESKey": "M5pfvJCKBwpJdA7YfeX3AkAKJmfBf4piybEPDtWKWw4=",
"Base36Chars": "0123456789abcdefghijklmnopqrstuvwxyz",
"IpInfoAccessToken": "8f5391efee4843",
"TokenLifetimeInMinutes": "1000",
"TokenMaxLifetimeInMinutes": "1000"
"AdminCounterparty": {
"LegalName": "PandaTech",
"TaxCode": "12345678",
"PrimaryAddress": "Adonts 8/2"
},
"MessagingSettings": {
"LoginPageUrl": "https://ca.pandatech.it/login",
"EmailProviderId": "4696d127-d5c0-4b8c-8b0d-c4fc08b865d4",
"MagicLinkPattern": "Hello {{User's Name}}, Click the link below to authenticate your {{Application name}} account: {{Magic Link}}. It expires in 15 minutes. If you didn't request this, contact us right away.",
"PasswordMailPattern": "Please click on the link below to login into your account:<br>{{URL}}<br><br>Your login: {{EMAIL}}<br>Your password: {{PASSWORD}}<br><br>You must change your password at first login.",
"ForgotPasswordMailPattern": "Please click on the link below to reset your password:<br>{{URL}}<br><br>If you did not request a password reset please ignore this email.",
"2faMailPattern": "Please click on the link below to verify your login:<br>{{URL}}<br><br>If you did not request a verification, please contact support",
"SmsProviderName": "test",
"SmsProviderId": "5982e19e-810a-4ec5-8d67-c5fee8f4a6ad",
"SmsBodyPattern": "Hi {{User's Name}}, Your {{Application name}} verification code is {{OTP}}. It expires in 2 minutes. If you didn't request this, contact support."
}
"AESKey": "M5pfvJCKBwpJdA7YfeX3AkAKJmfBf4piybEPDtWKWw4=",
"Base36Chars": "0123456789abcdefghijklmnopqrstuvwxyz",
"IpInfoAccessToken": "8f5391efee4843",
"TokenLifetimeInMinutes": "1000",
"TokenMaxLifetimeInMinutes": "1000"
},
"MessagingSettings": {
"LoginPageUrl": "https://ca.pandatech.it/login",
"EmailProviderId": "4696d127-d5c0-4b8c-8b0d-c4fc08b865d4",
"MagicLinkPattern": "Hello {{User's Name}}, Click the link below to authenticate your {{Application name}} account: {{Magic Link}}. It expires in 15 minutes. If you didn't request this, contact us right away.",
"PasswordMailPattern": "Please click on the link below to login into your account:<br>{{URL}}<br><br>Your login: {{EMAIL}}<br>Your password: {{PASSWORD}}<br><br>You must change your password at first login.",
"ForgotPasswordMailPattern": "Please click on the link below to reset your password:<br>{{URL}}<br><br>If you did not request a password reset please ignore this email.",
"2faMailPattern": "Please click on the link below to verify your login:<br>{{URL}}<br><br>If you did not request a verification, please contact support",
"SmsProviderName": "test",
"SmsProviderId": "5982e19e-810a-4ec5-8d67-c5fee8f4a6ad",
"SmsBodyPattern": "Hi {{User's Name}}, Your {{Application name}} verification code is {{OTP}}. It expires in 2 minutes. If you didn't request this, contact support."
}
}
}

0 comments on commit fadb736

Please sign in to comment.