Skip to content

Commit

Permalink
feat(web-api): add production config (#1018)
Browse files Browse the repository at this point in the history
<!--- Provide a general summary of your changes in the Title above -->

## Description
Added missing configuration files for production environment. 
<!--- Describe your changes in detail -->

## Related Issue(s)

- #845 

## Verification

- [ ] **Your** code builds clean without any errors or warnings
- [ ] Manual testing done (required)
- [ ] Relevant automated test added (if you find this hard, leave it and
we'll help out)

## Documentation

- [ ] Documentation is updated (either in `docs`-directory, Altinnpedia
or a separate linked PR in
[altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if
applicable)
  • Loading branch information
arealmaas authored Aug 19, 2024
1 parent 9f4760d commit 689e7fe
Show file tree
Hide file tree
Showing 2 changed files with 138 additions and 0 deletions.
69 changes: 69 additions & 0 deletions src/Digdir.Domain.Dialogporten.GraphQL/appsettings.prod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"Infrastructure": {
"Redis": {
"Enabled": true,
"ConnectionString": "TODO: Add to local secrets"
},
"DialogDbConnectionString": "TODO: Add to local secrets",
// Settings from appsettings.json, environment variables or other configuration providers.
// The first three are always mandatory for all client definitions types
"Maskinporten": {
// 1. Valid values are test and prod
"Environment": "prod",
// 2. Client Id/integration as configured in Maskinporten
"ClientId": "TODO: Add to local secrets",
// 3. Scope(s) requested, space seperated. Must be provisioned on supplied client id.
"Scope": "altinn:events.publish altinn:events.publish.admin altinn:register/partylookup.admin altinn:authorization/authorize.admin altinn:accessmanagement/authorizedparties.admin",
// --------------------------
// Any additional settings are specific for the selected client definition type.
// See below for examples using other types.
"EncodedJwk": "TODO: Add to local secrets"
},
"Altinn": {
"BaseUri": "https://platform.altinn.no/",
"EventsBaseUri": "Secret webhook sink URL in source key vault",
"SubscriptionKey": "TODO: Add to local secrets"
}
},
"Application": {
"Dialogporten": {
"BaseUri": "https://platform.altinn.no/dialogporten",
"Ed25519KeyPairs": {
"Primary": {
"Kid": "TODO: Add to local secrets",
"PrivateComponent": "TODO: Add to local secrets",
"PublicComponent": "TODO: Add to local secrets"
},
"Secondary": {
"Kid": "TODO: Add to local secrets",
"PrivateComponent": "TODO: Add to local secrets",
"PublicComponent": "TODO: Add to local secrets"
}
}
}
},
"GraphQl": {
"Authentication": {
"JwtBearerTokenSchemas": [
{
"Name": "Maskinporten",
"WellKnown": "https://maskinporten.no/.well-known/oauth-authorization-server/"
},
{
"Name": "Altinn",
"WellKnown": "https://platform.altinn.no/authentication/api/v1/openid/.well-known/openid-configuration"
},
{
"Name": "Idporten",
"WellKnown": "https://idporten.no/.well-known/openid-configuration"
}
]
}
}
}
69 changes: 69 additions & 0 deletions src/Digdir.Domain.Dialogporten.WebApi/appsettings.prod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"Infrastructure": {
"Redis": {
"Enabled": true,
"ConnectionString": "TODO: Add to local secrets"
},
"DialogDbConnectionString": "TODO: Add to local secrets",
// Settings from appsettings.json, environment variables or other configuration providers.
// The first three are always mandatory for all client definitions types
"Maskinporten": {
// 1. Valid values are test and prod
"Environment": "prod",
// 2. Client Id/integration as configured in Maskinporten
"ClientId": "TODO: Add to local secrets",
// 3. Scope(s) requested, space seperated. Must be provisioned on supplied client id.
"Scope": "altinn:events.publish altinn:events.publish.admin altinn:register/partylookup.admin altinn:authorization/authorize.admin altinn:accessmanagement/authorizedparties.admin",
// --------------------------
// Any additional settings are specific for the selected client definition type.
// See below for examples using other types.
"EncodedJwk": "TODO: Add to local secrets"
},
"Altinn": {
"BaseUri": "https://platform.altinn.no/",
"EventsBaseUri": "https://platform.altinn.no/",
"SubscriptionKey": "TODO: Add to local secrets"
}
},
"Application": {
"Dialogporten": {
"BaseUri": "https://platform.altinn.no/dialogporten",
"Ed25519KeyPairs": {
"Primary": {
"Kid": "TODO: Add to local secrets",
"PrivateComponent": "TODO: Add to local secrets",
"PublicComponent": "TODO: Add to local secrets"
},
"Secondary": {
"Kid": "TODO: Add to local secrets",
"PrivateComponent": "TODO: Add to local secrets",
"PublicComponent": "TODO: Add to local secrets"
}
}
}
},
"WebApi": {
"Authentication": {
"JwtBearerTokenSchemas": [
{
"Name": "Maskinporten",
"WellKnown": "https://maskinporten.no/.well-known/oauth-authorization-server/"
},
{
"Name": "Altinn",
"WellKnown": "https://platform.altinn.no/authentication/api/v1/openid/.well-known/openid-configuration"
},
{
"Name": "Idporten",
"WellKnown": "https://idporten.no/.well-known/openid-configuration"
}
]
}
}
}

0 comments on commit 689e7fe

Please sign in to comment.